#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*/ printf(char *, int);
int strlen(char *);
int main() {
  char *units[9] = {"one", "two",   "three", "four", "five",
                    "six", "seven", "eight", "nine"};
  char *tens[90] = {
      "ten",          "eleven",      "twelve",      "thirteen",
      "fourteen",     "fifteen",     "sixteen",     "seventeen",
      "eighteen",     "nineteen",    "twenty",      "twentyone",
      "twentytwo",    "twentythree", "twentyfour",  "twentyfive",
      "twentysix",    "twentyseven", "twentyeight", "twentynine",
      "thirty",       "thirtyone",   "thirtytwo",   "thirtythree",
      "thirtyfour",   "thirtyfive",  "thirtysix",   "thirtyseven",
      "thirtyeight",  "thirtynine",  "forty",       "fortyone",
      "fortytwo",     "fortythree",  "fortyfour",   "fortyfive",
      "fortysix",     "fortyseven",  "fortyeight",  "fortynine",
      "fifty",        "fiftyone",    "fiftytwo",    "fiftythree",
      "fiftyfour",    "fiftyfive",   "fiftysix",    "fiftyseven",
      "fiftyeight",   "fiftynine",   "sixty",       "sixtyone",
      "sixtytwo",     "sixtythree",  "sixtyfour",   "sixtyfive",
      "sixtysix",     "sixtyseven",  "sixtyeight",  "sixtynine",
      "seventy",      "seventyone",  "seventytwo",  "seventythree",
      "seventyfour",  "seventyfive", "seventysix",  "seventyseven",
      "seventyeight", "seventynine", "eighty",      "eightyone",
      "eightytwo",    "eightythree", "eightyfour",  "eightyfive",
      "eightysix",    "eightyseven", "eightyeight", "eightynine",
      "ninety",       "ninetyone",   "ninetytwo",   "ninetythree",
      "ninetyfour",   "ninetyfive",  "ninetysix",   "ninetyseven",
      "ninetyeight",  "ninetynine"};
  char *onek = "one thousand";
  int hcount = 7;
  int handcount = 10;
  int count = 0;
  int i;
  for (i = 0; i < 9; ++i)
    count += strlen(units[i]);
  for (i = 0; i < 90; ++i)
    count += strlen(tens[i]);
  for (i = 0; i < 9; ++i) {
    count += strlen(units[i]) + hcount;
    int j;
    for (j = 0; j < 9; ++j)
      count += strlen(units[i]) + handcount + strlen(units[j]);
    for (j = 0; j < 90; ++j)
      count += strlen(units[i]) + handcount + strlen(tens[j]);
  }
  count += strlen(onek) - 1;
  printf("%d\n", count);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x350,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x50(%rbp),%rdi
lea    0x29b3(%rip),%rsi
mov    $0x48,%edx
call   1050 <memcpy@plt>
lea    -0x320(%rbp),%rdi
lea    0x29eb(%rip),%rsi
mov    $0x2d0,%edx
call   1050 <memcpy@plt>
lea    0x1216(%rip),%rax
mov    %rax,-0x328(%rbp)
movl   $0x7,-0x32c(%rbp)
movl   $0xa,-0x330(%rbp)
movl   $0x0,-0x334(%rbp)
movl   $0x0,-0x338(%rbp)
cmpl   $0x9,-0x338(%rbp)
jge    11e3 <main+0xb3>
movslq -0x338(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1030 <strlen@plt>
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
mov    -0x338(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x338(%rbp)
jmp    11a5 <main+0x75>
movl   $0x0,-0x338(%rbp)
cmpl   $0x5a,-0x338(%rbp)
jge    122e <main+0xfe>
movslq -0x338(%rbp),%rax
mov    -0x320(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
mov    -0x338(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x338(%rbp)
jmp    11ed <main+0xbd>
movl   $0x0,-0x338(%rbp)
cmpl   $0x9,-0x338(%rbp)
jge    1362 <main+0x232>
movslq -0x338(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1030 <strlen@plt>
add    -0x32c(%rbp),%eax
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
movl   $0x0,-0x33c(%rbp)
cmpl   $0x9,-0x33c(%rbp)
jge    12d7 <main+0x1a7>
movslq -0x338(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1030 <strlen@plt>
add    -0x330(%rbp),%eax
mov    %eax,-0x340(%rbp)
movslq -0x33c(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x340(%rbp),%eax
add    %ecx,%eax
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    1272 <main+0x142>
movl   $0x0,-0x33c(%rbp)
cmpl   $0x5a,-0x33c(%rbp)
jge    1349 <main+0x219>
movslq -0x338(%rbp),%rax
mov    -0x50(%rbp,%rax,8),%rdi
call   1030 <strlen@plt>
add    -0x330(%rbp),%eax
mov    %eax,-0x344(%rbp)
movslq -0x33c(%rbp),%rax
mov    -0x320(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x344(%rbp),%eax
add    %ecx,%eax
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
mov    -0x33c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x33c(%rbp)
jmp    12e1 <main+0x1b1>
jmp    134e <main+0x21e>
mov    -0x338(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x338(%rbp)
jmp    1238 <main+0x108>
mov    -0x328(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
add    -0x334(%rbp),%eax
mov    %eax,-0x334(%rbp)
mov    -0x334(%rbp),%esi
lea    0x100f(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x350,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0x11fd(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
lea    0x11f9(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0x11f3(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x11ef(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0x11ea(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x11e5(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0x11df(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x11db(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
lea    0x11d7(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
xor    %ebp,%ebp
lea    0x298e(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x0(%rbp,%r14,1),%rdi
call   1030 <strlen@plt>
add    %eax,%ebx
add    $0x8,%rbp
cmp    $0x2d0,%rbp
jne    11d0 <main+0xb0>
xor    %r15d,%r15d
nopl   0x0(%rax)
lea    0x2909(%rip),%rax
mov    (%rax,%r15,8),%r13
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x1115(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x1103(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x10f1(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x10e1(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x10d0(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x10bf(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x10ad(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x109d(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
add    %ebx,%ebp
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebx
add    %ebp,%ebx
lea    0x108d(%rip),%rdi
call   1030 <strlen@plt>
add    %eax,%ebx
add    $0x61,%ebx
xor    %r12d,%r12d
nopw   0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
mov    (%r12,%r14,1),%rdi
call   1030 <strlen@plt>
add    %ebx,%ebp
lea    (%rax,%rbp,1),%ebx
add    $0xa,%ebx
add    $0x8,%r12
cmp    $0x2d0,%r12
jne    1310 <main+0x1f0>
add    $0x1,%r15
cmp    $0x9,%r15
jne    11f0 <main+0xd0>
lea    0x103f(%rip),%rdi
call   1030 <strlen@plt>
lea    (%rbx,%rax,1),%esi
add    $0xffffffff,%esi
lea    0x103a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"one\00"
@.str.1 = [4 x i8] c"two\00"
@.str.2 = [6 x i8] c"three\00"
@.str.3 = [5 x i8] c"four\00"
@.str.4 = [5 x i8] c"five\00"
@.str.5 = [4 x i8] c"six\00"
@.str.6 = [6 x i8] c"seven\00"
@.str.7 = [6 x i8] c"eight\00"
@.str.8 = [5 x i8] c"nine\00"
@__const.main.units = [9 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0)]
@.str.9 = [4 x i8] c"ten\00"
@.str.10 = [7 x i8] c"eleven\00"
@.str.11 = [7 x i8] c"twelve\00"
@.str.12 = [9 x i8] c"thirteen\00"
@.str.13 = [9 x i8] c"fourteen\00"
@.str.14 = [8 x i8] c"fifteen\00"
@.str.15 = [8 x i8] c"sixteen\00"
@.str.16 = [10 x i8] c"seventeen\00"
@.str.17 = [9 x i8] c"eighteen\00"
@.str.18 = [9 x i8] c"nineteen\00"
@.str.19 = [7 x i8] c"twenty\00"
@.str.20 = [10 x i8] c"twentyone\00"
@.str.21 = [10 x i8] c"twentytwo\00"
@.str.22 = [12 x i8] c"twentythree\00"
@.str.23 = [11 x i8] c"twentyfour\00"
@.str.24 = [11 x i8] c"twentyfive\00"
@.str.25 = [10 x i8] c"twentysix\00"
@.str.26 = [12 x i8] c"twentyseven\00"
@.str.27 = [12 x i8] c"twentyeight\00"
@.str.28 = [11 x i8] c"twentynine\00"
@.str.29 = [7 x i8] c"thirty\00"
@.str.30 = [10 x i8] c"thirtyone\00"
@.str.31 = [10 x i8] c"thirtytwo\00"
@.str.32 = [12 x i8] c"thirtythree\00"
@.str.33 = [11 x i8] c"thirtyfour\00"
@.str.34 = [11 x i8] c"thirtyfive\00"
@.str.35 = [10 x i8] c"thirtysix\00"
@.str.36 = [12 x i8] c"thirtyseven\00"
@.str.37 = [12 x i8] c"thirtyeight\00"
@.str.38 = [11 x i8] c"thirtynine\00"
@.str.39 = [6 x i8] c"forty\00"
@.str.40 = [9 x i8] c"fortyone\00"
@.str.41 = [9 x i8] c"fortytwo\00"
@.str.42 = [11 x i8] c"fortythree\00"
@.str.43 = [10 x i8] c"fortyfour\00"
@.str.44 = [10 x i8] c"fortyfive\00"
@.str.45 = [9 x i8] c"fortysix\00"
@.str.46 = [11 x i8] c"fortyseven\00"
@.str.47 = [11 x i8] c"fortyeight\00"
@.str.48 = [10 x i8] c"fortynine\00"
@.str.49 = [6 x i8] c"fifty\00"
@.str.50 = [9 x i8] c"fiftyone\00"
@.str.51 = [9 x i8] c"fiftytwo\00"
@.str.52 = [11 x i8] c"fiftythree\00"
@.str.53 = [10 x i8] c"fiftyfour\00"
@.str.54 = [10 x i8] c"fiftyfive\00"
@.str.55 = [9 x i8] c"fiftysix\00"
@.str.56 = [11 x i8] c"fiftyseven\00"
@.str.57 = [11 x i8] c"fiftyeight\00"
@.str.58 = [10 x i8] c"fiftynine\00"
@.str.59 = [6 x i8] c"sixty\00"
@.str.60 = [9 x i8] c"sixtyone\00"
@.str.61 = [9 x i8] c"sixtytwo\00"
@.str.62 = [11 x i8] c"sixtythree\00"
@.str.63 = [10 x i8] c"sixtyfour\00"
@.str.64 = [10 x i8] c"sixtyfive\00"
@.str.65 = [9 x i8] c"sixtysix\00"
@.str.66 = [11 x i8] c"sixtyseven\00"
@.str.67 = [11 x i8] c"sixtyeight\00"
@.str.68 = [10 x i8] c"sixtynine\00"
@.str.69 = [8 x i8] c"seventy\00"
@.str.70 = [11 x i8] c"seventyone\00"
@.str.71 = [11 x i8] c"seventytwo\00"
@.str.72 = [13 x i8] c"seventythree\00"
@.str.73 = [12 x i8] c"seventyfour\00"
@.str.74 = [12 x i8] c"seventyfive\00"
@.str.75 = [11 x i8] c"seventysix\00"
@.str.76 = [13 x i8] c"seventyseven\00"
@.str.77 = [13 x i8] c"seventyeight\00"
@.str.78 = [12 x i8] c"seventynine\00"
@.str.79 = [7 x i8] c"eighty\00"
@.str.80 = [10 x i8] c"eightyone\00"
@.str.81 = [10 x i8] c"eightytwo\00"
@.str.82 = [12 x i8] c"eightythree\00"
@.str.83 = [11 x i8] c"eightyfour\00"
@.str.84 = [11 x i8] c"eightyfive\00"
@.str.85 = [10 x i8] c"eightysix\00"
@.str.86 = [12 x i8] c"eightyseven\00"
@.str.87 = [12 x i8] c"eightyeight\00"
@.str.88 = [11 x i8] c"eightynine\00"
@.str.89 = [7 x i8] c"ninety\00"
@.str.90 = [10 x i8] c"ninetyone\00"
@.str.91 = [10 x i8] c"ninetytwo\00"
@.str.92 = [12 x i8] c"ninetythree\00"
@.str.93 = [11 x i8] c"ninetyfour\00"
@.str.94 = [11 x i8] c"ninetyfive\00"
@.str.95 = [10 x i8] c"ninetysix\00"
@.str.96 = [12 x i8] c"ninetyseven\00"
@.str.97 = [12 x i8] c"ninetyeight\00"
@.str.98 = [11 x i8] c"ninetynine\00"
@__const.main.tens = [90 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.54, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.55, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.56, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.57, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.58, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.59, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.60, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.61, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.62, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.63, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.64, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.65, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.66, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.67, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.68, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.69, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.70, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.71, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.72, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.73, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.74, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.75, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.76, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.77, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.78, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.79, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.80, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.81, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.82, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.83, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.84, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.85, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.86, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.87, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.88, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.89, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.90, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.91, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.92, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.93, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.94, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.95, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.96, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.97, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.98, i32 0, i32 0)]
@.str.99 = [13 x i8] c"one thousand\00"
@.str.100 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [9 x i8*]
%3 = alloca [90 x i8*]
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = bitcast [9 x i8*]* %2 to i8*
%11 = bitcast [90 x i8*]* %3 to i8*
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.99, i64 0, i64 0), i8** %4
store i32 7, i32* %5
store i32 10, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
br label %12
12: ; preds = %23, %0
%13 = load i32, i32* %8
%14 = icmp slt i32 %13, 9
br i1 %14, label %15, label %26
15: ; preds = %12
%16 = load i32, i32* %8
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 %17
%19 = load i8*, i8** %18
%20 = call i32 @strlen(i8* %19)
%21 = load i32, i32* %7
%22 = add nsw i32 %21, %20
store i32 %22, i32* %7
br label %23
23: ; preds = %15
%24 = load i32, i32* %8
%25 = add nsw i32 %24, 1
store i32 %25, i32* %8
br label %12
26: ; preds = %12
store i32 0, i32* %8
br label %27
27: ; preds = %38, %26
%28 = load i32, i32* %8
%29 = icmp slt i32 %28, 90
br i1 %29, label %30, label %41
30: ; preds = %27
%31 = load i32, i32* %8
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [90 x i8*], [90 x i8*]* %3, i64 0, i64 %32
%34 = load i8*, i8** %33
%35 = call i32 @strlen(i8* %34)
%36 = load i32, i32* %7
%37 = add nsw i32 %36, %35
store i32 %37, i32* %7
br label %38
38: ; preds = %30
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
br label %27
41: ; preds = %27
store i32 0, i32* %8
br label %42
42: ; preds = %101, %41
%43 = load i32, i32* %8
%44 = icmp slt i32 %43, 9
br i1 %44, label %45, label %104
45: ; preds = %42
%46 = load i32, i32* %8
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 %47
%49 = load i8*, i8** %48
%50 = call i32 @strlen(i8* %49)
%51 = load i32, i32* %5
%52 = add nsw i32 %50, %51
%53 = load i32, i32* %7
%54 = add nsw i32 %53, %52
store i32 %54, i32* %7
store i32 0, i32* %9
br label %55
55: ; preds = %74, %45
%56 = load i32, i32* %9
%57 = icmp slt i32 %56, 9
br i1 %57, label %58, label %77
58: ; preds = %55
%59 = load i32, i32* %8
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 %60
%62 = load i8*, i8** %61
%63 = call i32 @strlen(i8* %62)
%64 = load i32, i32* %6
%65 = add nsw i32 %63, %64
%66 = load i32, i32* %9
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 %67
%69 = load i8*, i8** %68
%70 = call i32 @strlen(i8* %69)
%71 = add nsw i32 %65, %70
%72 = load i32, i32* %7
%73 = add nsw i32 %72, %71
store i32 %73, i32* %7
br label %74
74: ; preds = %58
%75 = load i32, i32* %9
%76 = add nsw i32 %75, 1
store i32 %76, i32* %9
br label %55
77: ; preds = %55
store i32 0, i32* %9
br label %78
78: ; preds = %97, %77
%79 = load i32, i32* %9
%80 = icmp slt i32 %79, 90
br i1 %80, label %81, label %100
81: ; preds = %78
%82 = load i32, i32* %8
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [9 x i8*], [9 x i8*]* %2, i64 0, i64 %83
%85 = load i8*, i8** %84
%86 = call i32 @strlen(i8* %85)
%87 = load i32, i32* %6
%88 = add nsw i32 %86, %87
%89 = load i32, i32* %9
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [90 x i8*], [90 x i8*]* %3, i64 0, i64 %90
%92 = load i8*, i8** %91
%93 = call i32 @strlen(i8* %92)
%94 = add nsw i32 %88, %93
%95 = load i32, i32* %7
%96 = add nsw i32 %95, %94
store i32 %96, i32* %7
br label %97
97: ; preds = %81
%98 = load i32, i32* %9
%99 = add nsw i32 %98, 1
store i32 %99, i32* %9
br label %78
100: ; preds = %78
br label %101
101: ; preds = %100
%102 = load i32, i32* %8
%103 = add nsw i32 %102, 1
store i32 %103, i32* %8
br label %42
104: ; preds = %42
%105 = load i8*, i8** %4
%106 = call i32 @strlen(i8* %105)
%107 = sub nsw i32 %106, 1
%108 = load i32, i32* %7
%109 = add nsw i32 %108, %107
store i32 %109, i32* %7
%110 = load i32, i32* %7
%111 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.100, i64 0, i64 0), i32 %110)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"one\00"
@.str.1 = [4 x i8] c"two\00"
@.str.2 = [6 x i8] c"three\00"
@.str.3 = [5 x i8] c"four\00"
@.str.4 = [5 x i8] c"five\00"
@.str.5 = [4 x i8] c"six\00"
@.str.6 = [6 x i8] c"seven\00"
@.str.7 = [6 x i8] c"eight\00"
@.str.8 = [5 x i8] c"nine\00"
@__const.main.units = [9 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0)]
@.str.9 = [4 x i8] c"ten\00"
@.str.10 = [7 x i8] c"eleven\00"
@.str.11 = [7 x i8] c"twelve\00"
@.str.12 = [9 x i8] c"thirteen\00"
@.str.13 = [9 x i8] c"fourteen\00"
@.str.14 = [8 x i8] c"fifteen\00"
@.str.15 = [8 x i8] c"sixteen\00"
@.str.16 = [10 x i8] c"seventeen\00"
@.str.17 = [9 x i8] c"eighteen\00"
@.str.18 = [9 x i8] c"nineteen\00"
@.str.19 = [7 x i8] c"twenty\00"
@.str.20 = [10 x i8] c"twentyone\00"
@.str.21 = [10 x i8] c"twentytwo\00"
@.str.22 = [12 x i8] c"twentythree\00"
@.str.23 = [11 x i8] c"twentyfour\00"
@.str.24 = [11 x i8] c"twentyfive\00"
@.str.25 = [10 x i8] c"twentysix\00"
@.str.26 = [12 x i8] c"twentyseven\00"
@.str.27 = [12 x i8] c"twentyeight\00"
@.str.28 = [11 x i8] c"twentynine\00"
@.str.29 = [7 x i8] c"thirty\00"
@.str.30 = [10 x i8] c"thirtyone\00"
@.str.31 = [10 x i8] c"thirtytwo\00"
@.str.32 = [12 x i8] c"thirtythree\00"
@.str.33 = [11 x i8] c"thirtyfour\00"
@.str.34 = [11 x i8] c"thirtyfive\00"
@.str.35 = [10 x i8] c"thirtysix\00"
@.str.36 = [12 x i8] c"thirtyseven\00"
@.str.37 = [12 x i8] c"thirtyeight\00"
@.str.38 = [11 x i8] c"thirtynine\00"
@.str.39 = [6 x i8] c"forty\00"
@.str.40 = [9 x i8] c"fortyone\00"
@.str.41 = [9 x i8] c"fortytwo\00"
@.str.42 = [11 x i8] c"fortythree\00"
@.str.43 = [10 x i8] c"fortyfour\00"
@.str.44 = [10 x i8] c"fortyfive\00"
@.str.45 = [9 x i8] c"fortysix\00"
@.str.46 = [11 x i8] c"fortyseven\00"
@.str.47 = [11 x i8] c"fortyeight\00"
@.str.48 = [10 x i8] c"fortynine\00"
@.str.49 = [6 x i8] c"fifty\00"
@.str.50 = [9 x i8] c"fiftyone\00"
@.str.51 = [9 x i8] c"fiftytwo\00"
@.str.52 = [11 x i8] c"fiftythree\00"
@.str.53 = [10 x i8] c"fiftyfour\00"
@.str.54 = [10 x i8] c"fiftyfive\00"
@.str.55 = [9 x i8] c"fiftysix\00"
@.str.56 = [11 x i8] c"fiftyseven\00"
@.str.57 = [11 x i8] c"fiftyeight\00"
@.str.58 = [10 x i8] c"fiftynine\00"
@.str.59 = [6 x i8] c"sixty\00"
@.str.60 = [9 x i8] c"sixtyone\00"
@.str.61 = [9 x i8] c"sixtytwo\00"
@.str.62 = [11 x i8] c"sixtythree\00"
@.str.63 = [10 x i8] c"sixtyfour\00"
@.str.64 = [10 x i8] c"sixtyfive\00"
@.str.65 = [9 x i8] c"sixtysix\00"
@.str.66 = [11 x i8] c"sixtyseven\00"
@.str.67 = [11 x i8] c"sixtyeight\00"
@.str.68 = [10 x i8] c"sixtynine\00"
@.str.69 = [8 x i8] c"seventy\00"
@.str.70 = [11 x i8] c"seventyone\00"
@.str.71 = [11 x i8] c"seventytwo\00"
@.str.72 = [13 x i8] c"seventythree\00"
@.str.73 = [12 x i8] c"seventyfour\00"
@.str.74 = [12 x i8] c"seventyfive\00"
@.str.75 = [11 x i8] c"seventysix\00"
@.str.76 = [13 x i8] c"seventyseven\00"
@.str.77 = [13 x i8] c"seventyeight\00"
@.str.78 = [12 x i8] c"seventynine\00"
@.str.79 = [7 x i8] c"eighty\00"
@.str.80 = [10 x i8] c"eightyone\00"
@.str.81 = [10 x i8] c"eightytwo\00"
@.str.82 = [12 x i8] c"eightythree\00"
@.str.83 = [11 x i8] c"eightyfour\00"
@.str.84 = [11 x i8] c"eightyfive\00"
@.str.85 = [10 x i8] c"eightysix\00"
@.str.86 = [12 x i8] c"eightyseven\00"
@.str.87 = [12 x i8] c"eightyeight\00"
@.str.88 = [11 x i8] c"eightynine\00"
@.str.89 = [7 x i8] c"ninety\00"
@.str.90 = [10 x i8] c"ninetyone\00"
@.str.91 = [10 x i8] c"ninetytwo\00"
@.str.92 = [12 x i8] c"ninetythree\00"
@.str.93 = [11 x i8] c"ninetyfour\00"
@.str.94 = [11 x i8] c"ninetyfive\00"
@.str.95 = [10 x i8] c"ninetysix\00"
@.str.96 = [12 x i8] c"ninetyseven\00"
@.str.97 = [12 x i8] c"ninetyeight\00"
@.str.98 = [11 x i8] c"ninetynine\00"
@__const.main.tens = [90 x i8*] [i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.34, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.35, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.38, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.39, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.40, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.41, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.42, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.43, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.44, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.45, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.46, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.47, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.48, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.49, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.50, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.51, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.52, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.53, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.54, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.55, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.56, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.57, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.58, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.59, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.60, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.61, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.62, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.63, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.64, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.65, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.66, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.67, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.68, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.69, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.70, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.71, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.72, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.73, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.74, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.75, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.76, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.77, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.78, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.79, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.80, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.81, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.82, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.83, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.84, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.85, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.86, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.87, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.88, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.89, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.90, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.91, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.92, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.93, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.94, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.95, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.96, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.97, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.98, i32 0, i32 0)]
@.str.99 = [13 x i8] c"one thousand\00"
@.str.100 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = add nsw i32 %2, %1
%4 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%5 = add nsw i32 %4, %3
%6 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%7 = add nsw i32 %6, %5
%8 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%9 = add nsw i32 %8, %7
%10 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%11 = add nsw i32 %10, %9
%12 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%13 = add nsw i32 %12, %11
%14 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%15 = add nsw i32 %14, %13
%16 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%17 = add nsw i32 %16, %15
br label %18
18: ; preds = %0, %18
%19 = phi i64 [ 0, %0 ], [ %25, %18 ]
%20 = phi i32 [ %17, %0 ], [ %24, %18 ]
%21 = getelementptr inbounds [90 x i8*], [90 x i8*]* @__const.main.tens, i64 0, i64 %19
%22 = load i8*, i8** %21
%23 = tail call i32 @strlen(i8* %22)
%24 = add nsw i32 %23, %20
%25 = add nuw nsw i64 %19, 1
%26 = icmp eq i64 %25, 90
br i1 %26, label %27, label %18
27: ; preds = %18, %92
%28 = phi i64 [ %93, %92 ], [ 0, %18 ]
%29 = phi i32 [ %89, %92 ], [ %24, %18 ]
%30 = getelementptr inbounds [9 x i8*], [9 x i8*]* @__const.main.units, i64 0, i64 %28
%31 = load i8*, i8** %30
%32 = tail call i32 @strlen(i8* %31)
%33 = add i32 %29, 7
%34 = add i32 %33, %32
%35 = tail call i32 @strlen(i8* %31)
%36 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%37 = add i32 %34, 10
%38 = add i32 %37, %35
%39 = add i32 %38, %36
%40 = tail call i32 @strlen(i8* %31)
%41 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%42 = add i32 %39, 10
%43 = add i32 %42, %40
%44 = add i32 %43, %41
%45 = tail call i32 @strlen(i8* %31)
%46 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%47 = add i32 %44, 10
%48 = add i32 %47, %45
%49 = add i32 %48, %46
%50 = tail call i32 @strlen(i8* %31)
%51 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%52 = add i32 %49, 10
%53 = add i32 %52, %50
%54 = add i32 %53, %51
%55 = tail call i32 @strlen(i8* %31)
%56 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%57 = add i32 %54, 10
%58 = add i32 %57, %55
%59 = add i32 %58, %56
%60 = tail call i32 @strlen(i8* %31)
%61 = tail call i32 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%62 = add i32 %59, 10
%63 = add i32 %62, %60
%64 = add i32 %63, %61
%65 = tail call i32 @strlen(i8* %31)
%66 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%67 = add i32 %64, 10
%68 = add i32 %67, %65
%69 = add i32 %68, %66
%70 = tail call i32 @strlen(i8* %31)
%71 = tail call i32 @strlen(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%72 = add i32 %69, 10
%73 = add i32 %72, %70
%74 = add i32 %73, %71
%75 = tail call i32 @strlen(i8* %31)
%76 = tail call i32 @strlen(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%77 = add i32 %74, 10
%78 = add i32 %77, %75
%79 = add i32 %78, %76
br label %80
80: ; preds = %27, %80
%81 = phi i64 [ 0, %27 ], [ %90, %80 ]
%82 = phi i32 [ %79, %27 ], [ %89, %80 ]
%83 = tail call i32 @strlen(i8* %31)
%84 = getelementptr inbounds [90 x i8*], [90 x i8*]* @__const.main.tens, i64 0, i64 %81
%85 = load i8*, i8** %84
%86 = tail call i32 @strlen(i8* %85)
%87 = add i32 %82, 10
%88 = add i32 %87, %83
%89 = add i32 %88, %86
%90 = add nuw nsw i64 %81, 1
%91 = icmp eq i64 %90, 90
br i1 %91, label %92, label %80
92: ; preds = %80
%93 = add nuw nsw i64 %28, 1
%94 = icmp eq i64 %93, 9
br i1 %94, label %95, label %27
95: ; preds = %92
%96 = tail call i32 @strlen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.99, i64 0, i64 0))
%97 = add i32 %89, -1
%98 = add i32 %97, %96
%99 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.100, i64 0, i64 0), i32 %98)
ret i32 0
}