#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 strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
char *intToText(int x, char *buffer, int len) {
  if ((x >= 1000) && (x < 1000000)) {
    intToText(x / 1000, buffer, len);
    strncat(buffer, " THOUSAND", len - strlen(buffer) - 1);
    int y = x % 1000;
    if (y > 0) {
      strncat(buffer, " ", len - strlen(buffer) - 1);
      if (y < 100) {
        strncat(buffer, "AND ", len - strlen(buffer) - 1);
      }
      intToText(y, buffer, len);
    }
  }
  if ((x >= 100) && (x < 1000)) {
    intToText(x / 100, buffer, len);
    strncat(buffer, " HUNDRED", len - strlen(buffer) - 1);
    if (x % 100 != 0) {
      strncat(buffer, " AND ", len - strlen(buffer) - 1);
      intToText(x % 100, buffer, len);
    }
  }
  if ((x >= 20) && (x < 100)) {
    switch (x / 10) {
    case 2:
      strncat(buffer, "TWENTY", len - strlen(buffer) - 1);
      break;
    case 3:
      strncat(buffer, "THIRTY", len - strlen(buffer) - 1);
      break;
    case 4:
      strncat(buffer, "FORTY", len - strlen(buffer) - 1);
      break;
    case 5:
      strncat(buffer, "FIFTY", len - strlen(buffer) - 1);
      break;
    case 6:
      strncat(buffer, "SIXTY", len - strlen(buffer) - 1);
      break;
    case 7:
      strncat(buffer, "SEVENTY", len - strlen(buffer) - 1);
      break;
    case 8:
      strncat(buffer, "EIGHTY", len - strlen(buffer) - 1);
      break;
    case 9:
      strncat(buffer, "NINETY", len - strlen(buffer) - 1);
      break;
    }
    intToText(x % 10, buffer, len);
  } else if ((x > 0) && (x < 20)) {
    switch (x) {
    case 1:
      strncat(buffer, "ONE", len - strlen(buffer) - 1);
      break;
    case 2:
      strncat(buffer, "TWO", len - strlen(buffer) - 1);
      break;
    case 3:
      strncat(buffer, "THREE", len - strlen(buffer) - 1);
      break;
    case 4:
      strncat(buffer, "FOUR", len - strlen(buffer) - 1);
      break;
    case 5:
      strncat(buffer, "FIVE", len - strlen(buffer) - 1);
      break;
    case 6:
      strncat(buffer, "SIX", len - strlen(buffer) - 1);
      break;
    case 7:
      strncat(buffer, "SEVEN", len - strlen(buffer) - 1);
      break;
    case 8:
      strncat(buffer, "EIGHT", len - strlen(buffer) - 1);
      break;
    case 9:
      strncat(buffer, "NINE", len - strlen(buffer) - 1);
      break;
    case 10:
      strncat(buffer, "TEN", len - strlen(buffer) - 1);
      break;
    case 11:
      strncat(buffer, "ELEVEN", len - strlen(buffer) - 1);
      break;
    case 12:
      strncat(buffer, "TWELVE", len - strlen(buffer) - 1);
      break;
    case 13:
      strncat(buffer, "THIRTEEN", len - strlen(buffer) - 1);
      break;
    case 14:
      strncat(buffer, "FOURTEEN", len - strlen(buffer) - 1);
      break;
    case 15:
      strncat(buffer, "FIFTEEN", len - strlen(buffer) - 1);
      break;
    case 16:
      strncat(buffer, "SIXTEEN", len - strlen(buffer) - 1);
      break;
    case 17:
      strncat(buffer, "SEVENTEEN", len - strlen(buffer) - 1);
      break;
    case 18:
      strncat(buffer, "EIGHTEEN", len - strlen(buffer) - 1);
      break;
    case 19:
      strncat(buffer, "NINETEEN", len - strlen(buffer) - 1);
      break;
    }
  }
  return buffer;
}


x86 assembly (clang, -O0):
<intToText>:
push   %rbp
mov    %rsp,%rbp
sub    $0x230,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
cmpl   $0x3e8,-0x4(%rbp)
jl     123b <intToText+0x10b>
cmpl   $0xf4240,-0x4(%rbp)
jge    123b <intToText+0x10b>
mov    -0x4(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <intToText@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x24(%rbp),%edx
mov    -0x20(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xeca(%rip),%rsi
call   1040 <strncat@plt>
mov    -0x4(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %edx,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
jle    1236 <intToText+0x106>
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x34(%rbp),%edx
mov    -0x30(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xe9a(%rip),%rsi
call   1040 <strncat@plt>
cmpl   $0x64,-0x18(%rbp)
jge    1227 <intToText+0xf7>
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x44(%rbp),%edx
mov    -0x40(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xe5e(%rip),%rsi
call   1040 <strncat@plt>
mov    -0x18(%rbp),%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <intToText@plt>
jmp    123b <intToText+0x10b>
cmpl   $0x64,-0x4(%rbp)
jl     12fb <intToText+0x1cb>
cmpl   $0x3e8,-0x4(%rbp)
jge    12fb <intToText+0x1cb>
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <intToText@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x54(%rbp),%edx
mov    -0x50(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xde1(%rip),%rsi
call   1040 <strncat@plt>
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     12f6 <intToText+0x1c6>
mov    -0x10(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x64(%rbp),%edx
mov    -0x60(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xda7(%rip),%rsi
call   1040 <strncat@plt>
mov    -0x4(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <intToText@plt>
jmp    12fb <intToText+0x1cb>
cmpl   $0x14,-0x4(%rbp)
jl     155f <intToText+0x42f>
cmpl   $0x64,-0x4(%rbp)
jge    155f <intToText+0x42f>
movslq -0x4(%rbp),%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
sar    $0x22,%rcx
mov    %ecx,%edx
shr    $0x3f,%rax
mov    %eax,%ecx
mov    %edx,%eax
lea    -0x2(%rax,%rcx,1),%eax
mov    %eax,%ecx
mov    %rcx,-0x70(%rbp)
sub    $0x7,%eax
ja     1541 <intToText+0x411>
mov    -0x70(%rbp),%rax
lea    0xd03(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x7c(%rbp),%edx
mov    -0x78(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xd09(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x8c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x8c(%rbp),%edx
mov    -0x88(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xcd0(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x9c(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x9c(%rbp),%edx
mov    -0x98(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xc97(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xac(%rbp),%edx
mov    -0xa8(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xc5d(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xbc(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xbc(%rbp),%edx
mov    -0xb8(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xc23(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xcc(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xcc(%rbp),%edx
mov    -0xc8(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xbe9(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0xd8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xdc(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xdc(%rbp),%edx
mov    -0xd8(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xbb1(%rip),%rsi
call   1040 <strncat@plt>
jmp    1541 <intToText+0x411>
mov    -0x10(%rbp),%rax
mov    %rax,-0xe8(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0xec(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0xec(%rbp),%edx
mov    -0xe8(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xb78(%rip),%rsi
call   1040 <strncat@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1050 <intToText@plt>
jmp    1a67 <intToText+0x937>
cmpl   $0x0,-0x4(%rbp)
jle    1a62 <intToText+0x932>
cmpl   $0x14,-0x4(%rbp)
jge    1a62 <intToText+0x932>
mov    -0x4(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xf8(%rbp)
sub    $0x12,%eax
ja     1a5d <intToText+0x92d>
mov    -0xf8(%rbp),%rax
lea    0xa67(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x10(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x104(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x104(%rbp),%edx
mov    -0x100(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xae3(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x114(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x114(%rbp),%edx
mov    -0x110(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xaa7(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x120(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x124(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x124(%rbp),%edx
mov    -0x120(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xa6b(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x134(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x134(%rbp),%edx
mov    -0x130(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0xa31(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x144(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x144(%rbp),%edx
mov    -0x140(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x9f6(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x150(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x154(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x154(%rbp),%edx
mov    -0x150(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x9bb(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x164(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x164(%rbp),%edx
mov    -0x160(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x97f(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x174(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x174(%rbp),%edx
mov    -0x170(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x945(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x180(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x184(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x184(%rbp),%edx
mov    -0x180(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x90b(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x190(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x194(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x194(%rbp),%edx
mov    -0x190(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x8d0(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1a0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1a4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1a4(%rbp),%edx
mov    -0x1a0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x894(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1b0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1b4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1b4(%rbp),%edx
mov    -0x1b0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x85b(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1c0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1c4(%rbp),%edx
mov    -0x1c0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x822(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1d4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1d4(%rbp),%edx
mov    -0x1d0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x7eb(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1e4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1e4(%rbp),%edx
mov    -0x1e0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x7b4(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x1f0(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x1f4(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x1f4(%rbp),%edx
mov    -0x1f0(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x77c(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x200(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x204(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x204(%rbp),%edx
mov    -0x200(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x744(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x210(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x214(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x214(%rbp),%edx
mov    -0x210(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x70e(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a5d <intToText+0x92d>
mov    -0x10(%rbp),%rax
mov    %rax,-0x220(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x224(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    -0x224(%rbp),%edx
mov    -0x220(%rbp),%rdi
sub    %eax,%edx
sub    $0x1,%edx
lea    0x6d7(%rip),%rsi
call   1040 <strncat@plt>
jmp    1a62 <intToText+0x932>
jmp    1a67 <intToText+0x937>
mov    -0x10(%rbp),%rax
add    $0x230,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<intToText>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%r12
mov    %edi,%r13d
lea    0xeb5(%rip),%r15
jmp    1154 <intToText+0x24>
nopl   (%rax)
movzbl %bpl,%r13d
lea    -0x3e8(%r13),%eax
cmp    $0xf3e57,%eax
ja     11f0 <intToText+0xc0>
mov    %r13d,%eax
imul   $0x10624dd3,%rax,%rbp
shr    $0x26,%rbp
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r14d,%edx
call   1050 <intToText@plt>
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
mov    %r15,%rsi
call   1040 <strncat@plt>
imul   $0x3e8,%ebp,%eax
sub    %eax,%r13d
je     1301 <intToText+0x1d1>
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
lea    0xe56(%rip),%rsi
call   1040 <strncat@plt>
cmp    $0x63,%r13d
ja     1154 <intToText+0x24>
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
lea    0xe30(%rip),%rsi
call   1040 <strncat@plt>
jmp    1154 <intToText+0x24>
xchg   %ax,%ax
lea    -0x64(%r13),%eax
cmp    $0x383,%eax
ja     1270 <intToText+0x140>
movzwl %r13w,%ebx
mov    %ebx,%eax
shr    $0x2,%eax
imul   $0x147b,%eax,%ebp
shr    $0x11,%ebp
mov    %ebp,%edi
mov    %r12,%rsi
mov    %r14d,%edx
call   1050 <intToText@plt>
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
lea    0xdd8(%rip),%rsi
call   1040 <strncat@plt>
imul   $0x64,%ebp,%eax
sub    %ax,%bx
je     1301 <intToText+0x1d1>
movzwl %bx,%r13d
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
lea    0xdb4(%rip),%rsi
call   1040 <strncat@plt>
jmp    1154 <intToText+0x24>
nopl   0x0(%rax)
lea    -0x14(%r13),%eax
cmp    $0x4f,%eax
ja     12c9 <intToText+0x199>
movzbl %r13b,%ebp
imul   $0xcd,%ebp,%eax
shr    $0xb,%eax
lea    (%rax,%rax,1),%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%bpl
add    $0xfffffffe,%eax
cmp    $0x7,%eax
ja     1150 <intToText+0x20>
cltq
lea    0xe28(%rip),%rcx
movslq (%rcx,%rax,4),%r13
add    %rcx,%r13
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
lea    (%rax,%r14,1),%edx
mov    %r12,%rdi
mov    %r13,%rsi
call   1040 <strncat@plt>
jmp    1150 <intToText+0x20>
add    $0xffffffff,%r13d
cmp    $0x12,%r13d
ja     1301 <intToText+0x1d1>
ja     1301 <intToText+0x1d1>
movslq %r13d,%rax
lea    0xe0d(%rip),%rcx
movslq (%rcx,%rax,4),%rbp
add    %rcx,%rbp
mov    %r12,%rdi
call   1030 <strlen@plt>
not    %eax
add    %eax,%r14d
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
call   1040 <strncat@plt>
mov    %r12,%rax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c" THOUSAND\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [5 x i8] c"AND \00"
@.str.3 = [9 x i8] c" HUNDRED\00"
@.str.4 = [6 x i8] c" AND \00"
@.str.5 = [7 x i8] c"TWENTY\00"
@.str.6 = [7 x i8] c"THIRTY\00"
@.str.7 = [6 x i8] c"FORTY\00"
@.str.8 = [6 x i8] c"FIFTY\00"
@.str.9 = [6 x i8] c"SIXTY\00"
@.str.10 = [8 x i8] c"SEVENTY\00"
@.str.11 = [7 x i8] c"EIGHTY\00"
@.str.12 = [7 x i8] c"NINETY\00"
@.str.13 = [4 x i8] c"ONE\00"
@.str.14 = [4 x i8] c"TWO\00"
@.str.15 = [6 x i8] c"THREE\00"
@.str.16 = [5 x i8] c"FOUR\00"
@.str.17 = [5 x i8] c"FIVE\00"
@.str.18 = [4 x i8] c"SIX\00"
@.str.19 = [6 x i8] c"SEVEN\00"
@.str.20 = [6 x i8] c"EIGHT\00"
@.str.21 = [5 x i8] c"NINE\00"
@.str.22 = [4 x i8] c"TEN\00"
@.str.23 = [7 x i8] c"ELEVEN\00"
@.str.24 = [7 x i8] c"TWELVE\00"
@.str.25 = [9 x i8] c"THIRTEEN\00"
@.str.26 = [9 x i8] c"FOURTEEN\00"
@.str.27 = [8 x i8] c"FIFTEEN\00"
@.str.28 = [8 x i8] c"SIXTEEN\00"
@.str.29 = [10 x i8] c"SEVENTEEN\00"
@.str.30 = [9 x i8] c"EIGHTEEN\00"
@.str.31 = [9 x i8] c"NINETEEN\00"
define i8* @intToText(i32 %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%8 = load i32, i32* %4
%9 = icmp sge i32 %8, 1000
br i1 %9, label %10, label %54
10: ; preds = %3
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 1000000
br i1 %12, label %13, label %54
13: ; preds = %10
%14 = load i32, i32* %4
%15 = sdiv i32 %14, 1000
%16 = load i8*, i8** %5
%17 = load i32, i32* %6
%18 = call i8* @intToText(i32 %15, i8* %16, i32 %17)
%19 = load i8*, i8** %5
%20 = load i32, i32* %6
%21 = load i8*, i8** %5
%22 = call i32 @strlen(i8* %21)
%23 = sub nsw i32 %20, %22
%24 = sub nsw i32 %23, 1
%25 = call i32 @strncat(i8* %19, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %24)
%26 = load i32, i32* %4
%27 = srem i32 %26, 1000
store i32 %27, i32* %7
%28 = load i32, i32* %7
%29 = icmp sgt i32 %28, 0
br i1 %29, label %30, label %53
30: ; preds = %13
%31 = load i8*, i8** %5
%32 = load i32, i32* %6
%33 = load i8*, i8** %5
%34 = call i32 @strlen(i8* %33)
%35 = sub nsw i32 %32, %34
%36 = sub nsw i32 %35, 1
%37 = call i32 @strncat(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %7
%39 = icmp slt i32 %38, 100
br i1 %39, label %40, label %48
40: ; preds = %30
%41 = load i8*, i8** %5
%42 = load i32, i32* %6
%43 = load i8*, i8** %5
%44 = call i32 @strlen(i8* %43)
%45 = sub nsw i32 %42, %44
%46 = sub nsw i32 %45, 1
%47 = call i32 @strncat(i8* %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %46)
br label %48
48: ; preds = %40, %30
%49 = load i32, i32* %7
%50 = load i8*, i8** %5
%51 = load i32, i32* %6
%52 = call i8* @intToText(i32 %49, i8* %50, i32 %51)
br label %53
53: ; preds = %48, %13
br label %54
54: ; preds = %53, %10, %3
%55 = load i32, i32* %4
%56 = icmp sge i32 %55, 100
br i1 %56, label %57, label %90
57: ; preds = %54
%58 = load i32, i32* %4
%59 = icmp slt i32 %58, 1000
br i1 %59, label %60, label %90
60: ; preds = %57
%61 = load i32, i32* %4
%62 = sdiv i32 %61, 100
%63 = load i8*, i8** %5
%64 = load i32, i32* %6
%65 = call i8* @intToText(i32 %62, i8* %63, i32 %64)
%66 = load i8*, i8** %5
%67 = load i32, i32* %6
%68 = load i8*, i8** %5
%69 = call i32 @strlen(i8* %68)
%70 = sub nsw i32 %67, %69
%71 = sub nsw i32 %70, 1
%72 = call i32 @strncat(i8* %66, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %4
%74 = srem i32 %73, 100
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %89
76: ; preds = %60
%77 = load i8*, i8** %5
%78 = load i32, i32* %6
%79 = load i8*, i8** %5
%80 = call i32 @strlen(i8* %79)
%81 = sub nsw i32 %78, %80
%82 = sub nsw i32 %81, 1
%83 = call i32 @strncat(i8* %77, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %82)
%84 = load i32, i32* %4
%85 = srem i32 %84, 100
%86 = load i8*, i8** %5
%87 = load i32, i32* %6
%88 = call i8* @intToText(i32 %85, i8* %86, i32 %87)
br label %89
89: ; preds = %76, %60
br label %90
90: ; preds = %89, %57, %54
%91 = load i32, i32* %4
%92 = icmp sge i32 %91, 20
br i1 %92, label %93, label %169
93: ; preds = %90
%94 = load i32, i32* %4
%95 = icmp slt i32 %94, 100
br i1 %95, label %96, label %169
96: ; preds = %93
%97 = load i32, i32* %4
%98 = sdiv i32 %97, 10
switch i32 %98, label %163 [
i32 2, label %99
i32 3, label %107
i32 4, label %115
i32 5, label %123
i32 6, label %131
i32 7, label %139
i32 8, label %147
i32 9, label %155
]
99: ; preds = %96
%100 = load i8*, i8** %5
%101 = load i32, i32* %6
%102 = load i8*, i8** %5
%103 = call i32 @strlen(i8* %102)
%104 = sub nsw i32 %101, %103
%105 = sub nsw i32 %104, 1
%106 = call i32 @strncat(i8* %100, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 %105)
br label %163
107: ; preds = %96
%108 = load i8*, i8** %5
%109 = load i32, i32* %6
%110 = load i8*, i8** %5
%111 = call i32 @strlen(i8* %110)
%112 = sub nsw i32 %109, %111
%113 = sub nsw i32 %112, 1
%114 = call i32 @strncat(i8* %108, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %113)
br label %163
115: ; preds = %96
%116 = load i8*, i8** %5
%117 = load i32, i32* %6
%118 = load i8*, i8** %5
%119 = call i32 @strlen(i8* %118)
%120 = sub nsw i32 %117, %119
%121 = sub nsw i32 %120, 1
%122 = call i32 @strncat(i8* %116, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %121)
br label %163
123: ; preds = %96
%124 = load i8*, i8** %5
%125 = load i32, i32* %6
%126 = load i8*, i8** %5
%127 = call i32 @strlen(i8* %126)
%128 = sub nsw i32 %125, %127
%129 = sub nsw i32 %128, 1
%130 = call i32 @strncat(i8* %124, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %129)
br label %163
131: ; preds = %96
%132 = load i8*, i8** %5
%133 = load i32, i32* %6
%134 = load i8*, i8** %5
%135 = call i32 @strlen(i8* %134)
%136 = sub nsw i32 %133, %135
%137 = sub nsw i32 %136, 1
%138 = call i32 @strncat(i8* %132, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 %137)
br label %163
139: ; preds = %96
%140 = load i8*, i8** %5
%141 = load i32, i32* %6
%142 = load i8*, i8** %5
%143 = call i32 @strlen(i8* %142)
%144 = sub nsw i32 %141, %143
%145 = sub nsw i32 %144, 1
%146 = call i32 @strncat(i8* %140, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %145)
br label %163
147: ; preds = %96
%148 = load i8*, i8** %5
%149 = load i32, i32* %6
%150 = load i8*, i8** %5
%151 = call i32 @strlen(i8* %150)
%152 = sub nsw i32 %149, %151
%153 = sub nsw i32 %152, 1
%154 = call i32 @strncat(i8* %148, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i32 %153)
br label %163
155: ; preds = %96
%156 = load i8*, i8** %5
%157 = load i32, i32* %6
%158 = load i8*, i8** %5
%159 = call i32 @strlen(i8* %158)
%160 = sub nsw i32 %157, %159
%161 = sub nsw i32 %160, 1
%162 = call i32 @strncat(i8* %156, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 %161)
br label %163
163: ; preds = %96, %155, %147, %139, %131, %123, %115, %107, %99
%164 = load i32, i32* %4
%165 = srem i32 %164, 10
%166 = load i8*, i8** %5
%167 = load i32, i32* %6
%168 = call i8* @intToText(i32 %165, i8* %166, i32 %167)
br label %331
169: ; preds = %93, %90
%170 = load i32, i32* %4
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %330
172: ; preds = %169
%173 = load i32, i32* %4
%174 = icmp slt i32 %173, 20
br i1 %174, label %175, label %330
175: ; preds = %172
%176 = load i32, i32* %4
switch i32 %176, label %329 [
i32 1, label %177
i32 2, label %185
i32 3, label %193
i32 4, label %201
i32 5, label %209
i32 6, label %217
i32 7, label %225
i32 8, label %233
i32 9, label %241
i32 10, label %249
i32 11, label %257
i32 12, label %265
i32 13, label %273
i32 14, label %281
i32 15, label %289
i32 16, label %297
i32 17, label %305
i32 18, label %313
i32 19, label %321
]
177: ; preds = %175
%178 = load i8*, i8** %5
%179 = load i32, i32* %6
%180 = load i8*, i8** %5
%181 = call i32 @strlen(i8* %180)
%182 = sub nsw i32 %179, %181
%183 = sub nsw i32 %182, 1
%184 = call i32 @strncat(i8* %178, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i32 %183)
br label %329
185: ; preds = %175
%186 = load i8*, i8** %5
%187 = load i32, i32* %6
%188 = load i8*, i8** %5
%189 = call i32 @strlen(i8* %188)
%190 = sub nsw i32 %187, %189
%191 = sub nsw i32 %190, 1
%192 = call i32 @strncat(i8* %186, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i32 %191)
br label %329
193: ; preds = %175
%194 = load i8*, i8** %5
%195 = load i32, i32* %6
%196 = load i8*, i8** %5
%197 = call i32 @strlen(i8* %196)
%198 = sub nsw i32 %195, %197
%199 = sub nsw i32 %198, 1
%200 = call i32 @strncat(i8* %194, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0), i32 %199)
br label %329
201: ; preds = %175
%202 = load i8*, i8** %5
%203 = load i32, i32* %6
%204 = load i8*, i8** %5
%205 = call i32 @strlen(i8* %204)
%206 = sub nsw i32 %203, %205
%207 = sub nsw i32 %206, 1
%208 = call i32 @strncat(i8* %202, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0), i32 %207)
br label %329
209: ; preds = %175
%210 = load i8*, i8** %5
%211 = load i32, i32* %6
%212 = load i8*, i8** %5
%213 = call i32 @strlen(i8* %212)
%214 = sub nsw i32 %211, %213
%215 = sub nsw i32 %214, 1
%216 = call i32 @strncat(i8* %210, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i32 %215)
br label %329
217: ; preds = %175
%218 = load i8*, i8** %5
%219 = load i32, i32* %6
%220 = load i8*, i8** %5
%221 = call i32 @strlen(i8* %220)
%222 = sub nsw i32 %219, %221
%223 = sub nsw i32 %222, 1
%224 = call i32 @strncat(i8* %218, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i32 %223)
br label %329
225: ; preds = %175
%226 = load i8*, i8** %5
%227 = load i32, i32* %6
%228 = load i8*, i8** %5
%229 = call i32 @strlen(i8* %228)
%230 = sub nsw i32 %227, %229
%231 = sub nsw i32 %230, 1
%232 = call i32 @strncat(i8* %226, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0), i32 %231)
br label %329
233: ; preds = %175
%234 = load i8*, i8** %5
%235 = load i32, i32* %6
%236 = load i8*, i8** %5
%237 = call i32 @strlen(i8* %236)
%238 = sub nsw i32 %235, %237
%239 = sub nsw i32 %238, 1
%240 = call i32 @strncat(i8* %234, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.20, i64 0, i64 0), i32 %239)
br label %329
241: ; preds = %175
%242 = load i8*, i8** %5
%243 = load i32, i32* %6
%244 = load i8*, i8** %5
%245 = call i32 @strlen(i8* %244)
%246 = sub nsw i32 %243, %245
%247 = sub nsw i32 %246, 1
%248 = call i32 @strncat(i8* %242, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i32 %247)
br label %329
249: ; preds = %175
%250 = load i8*, i8** %5
%251 = load i32, i32* %6
%252 = load i8*, i8** %5
%253 = call i32 @strlen(i8* %252)
%254 = sub nsw i32 %251, %253
%255 = sub nsw i32 %254, 1
%256 = call i32 @strncat(i8* %250, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0), i32 %255)
br label %329
257: ; preds = %175
%258 = load i8*, i8** %5
%259 = load i32, i32* %6
%260 = load i8*, i8** %5
%261 = call i32 @strlen(i8* %260)
%262 = sub nsw i32 %259, %261
%263 = sub nsw i32 %262, 1
%264 = call i32 @strncat(i8* %258, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0), i32 %263)
br label %329
265: ; preds = %175
%266 = load i8*, i8** %5
%267 = load i32, i32* %6
%268 = load i8*, i8** %5
%269 = call i32 @strlen(i8* %268)
%270 = sub nsw i32 %267, %269
%271 = sub nsw i32 %270, 1
%272 = call i32 @strncat(i8* %266, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0), i32 %271)
br label %329
273: ; preds = %175
%274 = load i8*, i8** %5
%275 = load i32, i32* %6
%276 = load i8*, i8** %5
%277 = call i32 @strlen(i8* %276)
%278 = sub nsw i32 %275, %277
%279 = sub nsw i32 %278, 1
%280 = call i32 @strncat(i8* %274, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0), i32 %279)
br label %329
281: ; preds = %175
%282 = load i8*, i8** %5
%283 = load i32, i32* %6
%284 = load i8*, i8** %5
%285 = call i32 @strlen(i8* %284)
%286 = sub nsw i32 %283, %285
%287 = sub nsw i32 %286, 1
%288 = call i32 @strncat(i8* %282, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.26, i64 0, i64 0), i32 %287)
br label %329
289: ; preds = %175
%290 = load i8*, i8** %5
%291 = load i32, i32* %6
%292 = load i8*, i8** %5
%293 = call i32 @strlen(i8* %292)
%294 = sub nsw i32 %291, %293
%295 = sub nsw i32 %294, 1
%296 = call i32 @strncat(i8* %290, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i64 0, i64 0), i32 %295)
br label %329
297: ; preds = %175
%298 = load i8*, i8** %5
%299 = load i32, i32* %6
%300 = load i8*, i8** %5
%301 = call i32 @strlen(i8* %300)
%302 = sub nsw i32 %299, %301
%303 = sub nsw i32 %302, 1
%304 = call i32 @strncat(i8* %298, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.28, i64 0, i64 0), i32 %303)
br label %329
305: ; preds = %175
%306 = load i8*, i8** %5
%307 = load i32, i32* %6
%308 = load i8*, i8** %5
%309 = call i32 @strlen(i8* %308)
%310 = sub nsw i32 %307, %309
%311 = sub nsw i32 %310, 1
%312 = call i32 @strncat(i8* %306, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.29, i64 0, i64 0), i32 %311)
br label %329
313: ; preds = %175
%314 = load i8*, i8** %5
%315 = load i32, i32* %6
%316 = load i8*, i8** %5
%317 = call i32 @strlen(i8* %316)
%318 = sub nsw i32 %315, %317
%319 = sub nsw i32 %318, 1
%320 = call i32 @strncat(i8* %314, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.30, i64 0, i64 0), i32 %319)
br label %329
321: ; preds = %175
%322 = load i8*, i8** %5
%323 = load i32, i32* %6
%324 = load i8*, i8** %5
%325 = call i32 @strlen(i8* %324)
%326 = sub nsw i32 %323, %325
%327 = sub nsw i32 %326, 1
%328 = call i32 @strncat(i8* %322, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.31, i64 0, i64 0), i32 %327)
br label %329
329: ; preds = %175, %321, %313, %305, %297, %289, %281, %273, %265, %257, %249, %241, %233, %225, %217, %209, %201, %193, %185, %177
br label %330
330: ; preds = %329, %172, %169
br label %331
331: ; preds = %330, %163
%332 = load i8*, i8** %5
ret i8* %332
}

LLVM IR (-O2):
@.str = [10 x i8] c" THOUSAND\00"
@.str.1 = [2 x i8] c" \00"
@.str.2 = [5 x i8] c"AND \00"
@.str.3 = [9 x i8] c" HUNDRED\00"
@.str.4 = [6 x i8] c" AND \00"
@.str.5 = [7 x i8] c"TWENTY\00"
@.str.6 = [7 x i8] c"THIRTY\00"
@.str.7 = [6 x i8] c"FORTY\00"
@.str.8 = [6 x i8] c"FIFTY\00"
@.str.9 = [6 x i8] c"SIXTY\00"
@.str.10 = [8 x i8] c"SEVENTY\00"
@.str.11 = [7 x i8] c"EIGHTY\00"
@.str.12 = [7 x i8] c"NINETY\00"
@.str.13 = [4 x i8] c"ONE\00"
@.str.14 = [4 x i8] c"TWO\00"
@.str.15 = [6 x i8] c"THREE\00"
@.str.16 = [5 x i8] c"FOUR\00"
@.str.17 = [5 x i8] c"FIVE\00"
@.str.18 = [4 x i8] c"SIX\00"
@.str.19 = [6 x i8] c"SEVEN\00"
@.str.20 = [6 x i8] c"EIGHT\00"
@.str.21 = [5 x i8] c"NINE\00"
@.str.22 = [4 x i8] c"TEN\00"
@.str.23 = [7 x i8] c"ELEVEN\00"
@.str.24 = [7 x i8] c"TWELVE\00"
@.str.25 = [9 x i8] c"THIRTEEN\00"
@.str.26 = [9 x i8] c"FOURTEEN\00"
@.str.27 = [8 x i8] c"FIFTEEN\00"
@.str.28 = [8 x i8] c"SIXTEEN\00"
@.str.29 = [10 x i8] c"SEVENTEEN\00"
@.str.30 = [9 x i8] c"EIGHTEEN\00"
@.str.31 = [9 x i8] c"NINETEEN\00"
@reltable.intToText = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.5 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.6 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.7 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.8 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.9 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.10 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.11 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.12 to i64), i64 ptrtoint ([8 x i32]* @reltable.intToText to i64)) to i32)]
@reltable.intToText.33 = [19 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.13 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.14 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.15 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.16 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.17 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.18 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.19 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.20 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.21 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.22 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.23 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.24 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.25 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.26 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.27 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.28 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.29 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.30 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.31 to i64), i64 ptrtoint ([19 x i32]* @reltable.intToText.33 to i64)) to i32)]
define i8* @intToText(i32 %0, i8* returned %1, i32 %2) {
br label %4
4: ; preds = %23, %3
%5 = phi i32 [ %0, %3 ], [ %24, %23 ]
%6 = add i32 %5, -1000
%7 = icmp ult i32 %6, 999000
br i1 %7, label %8, label %30
8: ; preds = %4
%9 = udiv i32 %5, 1000
%10 = tail call i8* @intToText(i32 %9, i8* %1, i32 %2)
%11 = tail call i32 @strlen(i8* %1)
%12 = xor i32 %11, -1
%13 = add i32 %12, %2
%14 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %13)
%15 = urem i32 %5, 1000
%16 = icmp eq i32 %15, 0
br i1 %16, label %84, label %17
17: ; preds = %8
%18 = tail call i32 @strlen(i8* %1)
%19 = xor i32 %18, -1
%20 = add i32 %19, %2
%21 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = icmp ult i32 %15, 100
br i1 %22, label %25, label %23
23: ; preds = %17, %25, %44, %68
%24 = phi i32 [ %45, %44 ], [ %69, %68 ], [ %15, %25 ], [ %15, %17 ]
br label %4
25: ; preds = %17
%26 = tail call i32 @strlen(i8* %1)
%27 = xor i32 %26, -1
%28 = add i32 %27, %2
%29 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %28)
br label %23
30: ; preds = %4
%31 = add i32 %5, -100
%32 = icmp ult i32 %31, 900
br i1 %32, label %33, label %50
33: ; preds = %30
%34 = trunc i32 %5 to i16
%35 = udiv i16 %34, 100
%36 = zext i16 %35 to i32
%37 = tail call i8* @intToText(i32 %36, i8* %1, i32 %2)
%38 = tail call i32 @strlen(i8* %1)
%39 = xor i32 %38, -1
%40 = add i32 %39, %2
%41 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %40)
%42 = urem i16 %34, 100
%43 = icmp eq i16 %42, 0
br i1 %43, label %84, label %44
44: ; preds = %33
%45 = zext i16 %42 to i32
%46 = tail call i32 @strlen(i8* %1)
%47 = xor i32 %46, -1
%48 = add i32 %47, %2
%49 = tail call i32 @strncat(i8* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 %48)
br label %23
50: ; preds = %30
%51 = add i32 %5, -20
%52 = icmp ult i32 %51, 80
br i1 %52, label %53, label %70
53: ; preds = %50
%54 = trunc i32 %5 to i8
%55 = udiv i8 %54, 10
%56 = urem i8 %54, 10
%57 = zext i8 %55 to i32
%58 = add nsw i32 %57, -2
%59 = icmp ult i32 %58, 8
br i1 %59, label %60, label %68
60: ; preds = %53
%61 = sext i32 %58 to i64
%62 = shl i64 %61, 2
%63 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.intToText to i8*), i64 %62)
%64 = tail call i32 @strlen(i8* %1)
%65 = xor i32 %64, -1
%66 = add i32 %65, %2
%67 = tail call i32 @strncat(i8* %1, i8* %63, i32 %66)
br label %68
68: ; preds = %53, %60
%69 = zext i8 %56 to i32
br label %23
70: ; preds = %50
%71 = add i32 %5, -1
%72 = icmp ult i32 %71, 19
br i1 %72, label %73, label %84
73: ; preds = %70
%74 = add i32 %5, -1
%75 = icmp ult i32 %74, 19
br i1 %75, label %76, label %84
76: ; preds = %73
%77 = sext i32 %74 to i64
%78 = shl i64 %77, 2
%79 = call i8* @llvm.load.relative.i64(i8* bitcast ([19 x i32]* @reltable.intToText.33 to i8*), i64 %78)
%80 = tail call i32 @strlen(i8* %1)
%81 = xor i32 %80, -1
%82 = add i32 %81, %2
%83 = tail call i32 @strncat(i8* %1, i8* %79, i32 %82)
br label %84
84: ; preds = %33, %8, %73, %76, %70
ret i8* %1
}