#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 */
scalar_t__ lt100(char **, int);
scalar_t__ lt1000(char **, int);
scalar_t__ one(char **, int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  char *a[10000];
  int i, ans;
  a[0] = "";
  a[1] = "one";
  a[2] = "two";
  a[3] = "three";
  a[4] = "four";
  a[5] = "five";
  a[6] = "six";
  a[7] = "seven";
  a[8] = "eight";
  a[9] = "nine";
  a[10] = "ten";
  a[11] = "eleven";
  a[12] = "twelve";
  a[13] = "thirteen";
  a[14] = "fourteen";
  a[15] = "fifteen";
  a[16] = "sixteen";
  a[17] = "seventeen";
  a[18] = "eighteen";
  a[19] = "nineteen";
  a[20] = "twenty";
  a[30] = "thirty";
  a[40] = "forty";
  a[50] = "fifty";
  a[60] = "sixty";
  a[70] = "seventy";
  a[80] = "eighty";
  a[90] = "ninety";
  a[100] = "onehundred";
  a[200] = "twohundred";
  a[300] = "threehundred";
  a[400] = "fourhundred";
  a[500] = "fivehundred";
  a[600] = "sixhundred";
  a[700] = "sevenhundred";
  a[800] = "eighthundred";
  a[900] = "ninehundred";
  a[1000] = "onethousand";
  ans = 0;
  for (i = 1; i <= 1000; ++i) {
    if (i <= 20 || i == 1000) {
      ans += one(a, i);
    } else if (i < 100) {
      ans += lt100(a, i);
    } else if (i < 1000) {
      ans += lt1000(a, i);
    }
  }
  printf("%d\n", ans);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x138a0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xfd5(%rip),%rax
mov    %rax,-0x13890(%rbp)
lea    0xe99(%rip),%rax
mov    %rax,-0x13888(%rbp)
lea    0xe8f(%rip),%rax
mov    %rax,-0x13880(%rbp)
lea    0xe85(%rip),%rax
mov    %rax,-0x13878(%rbp)
lea    0xe7d(%rip),%rax
mov    %rax,-0x13870(%rbp)
lea    0xe74(%rip),%rax
mov    %rax,-0x13868(%rbp)
lea    0xe6b(%rip),%rax
mov    %rax,-0x13860(%rbp)
lea    0xe61(%rip),%rax
mov    %rax,-0x13858(%rbp)
lea    0xe59(%rip),%rax
mov    %rax,-0x13850(%rbp)
lea    0xe51(%rip),%rax
mov    %rax,-0x13848(%rbp)
lea    0xe48(%rip),%rax
mov    %rax,-0x13840(%rbp)
lea    0xe3e(%rip),%rax
mov    %rax,-0x13838(%rbp)
lea    0xe37(%rip),%rax
mov    %rax,-0x13830(%rbp)
lea    0xe30(%rip),%rax
mov    %rax,-0x13828(%rbp)
lea    0xe2b(%rip),%rax
mov    %rax,-0x13820(%rbp)
lea    0xe26(%rip),%rax
mov    %rax,-0x13818(%rbp)
lea    0xe20(%rip),%rax
mov    %rax,-0x13810(%rbp)
lea    0xe1a(%rip),%rax
mov    %rax,-0x13808(%rbp)
lea    0xe16(%rip),%rax
mov    %rax,-0x13800(%rbp)
lea    0xe11(%rip),%rax
mov    %rax,-0x137f8(%rbp)
lea    0xe0c(%rip),%rax
mov    %rax,-0x137f0(%rbp)
lea    0xe05(%rip),%rax
mov    %rax,-0x137a0(%rbp)
lea    0xdfe(%rip),%rax
mov    %rax,-0x13750(%rbp)
lea    0xdf6(%rip),%rax
mov    %rax,-0x13700(%rbp)
lea    0xdee(%rip),%rax
mov    %rax,-0x136b0(%rbp)
lea    0xde6(%rip),%rax
mov    %rax,-0x13660(%rbp)
lea    0xde0(%rip),%rax
mov    %rax,-0x13610(%rbp)
lea    0xdd9(%rip),%rax
mov    %rax,-0x135c0(%rbp)
lea    0xdd2(%rip),%rax
mov    %rax,-0x13570(%rbp)
lea    0xdcf(%rip),%rax
mov    %rax,-0x13250(%rbp)
lea    0xdcc(%rip),%rax
mov    %rax,-0x12f30(%rbp)
lea    0xdcb(%rip),%rax
mov    %rax,-0x12c10(%rbp)
lea    0xdc9(%rip),%rax
mov    %rax,-0x128f0(%rbp)
lea    0xdc7(%rip),%rax
mov    %rax,-0x125d0(%rbp)
lea    0xdc4(%rip),%rax
mov    %rax,-0x122b0(%rbp)
lea    0xdc3(%rip),%rax
mov    %rax,-0x11f90(%rbp)
lea    0xdc2(%rip),%rax
mov    %rax,-0x11c70(%rbp)
lea    0xdc0(%rip),%rax
mov    %rax,-0x11950(%rbp)
movl   $0x0,-0x13898(%rbp)
movl   $0x1,-0x13894(%rbp)
cmpl   $0x3e8,-0x13894(%rbp)
jg     1460 <main+0x320>
cmpl   $0x14,-0x13894(%rbp)
jle    13a7 <main+0x267>
cmpl   $0x3e8,-0x13894(%rbp)
jne    13d1 <main+0x291>
lea    -0x13890(%rbp),%rdi
mov    -0x13894(%rbp),%esi
call   1060 <one@plt>
mov    %rax,%rcx
movslq -0x13898(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x13898(%rbp)
jmp    1447 <main+0x307>
cmpl   $0x64,-0x13894(%rbp)
jge    1408 <main+0x2c8>
lea    -0x13890(%rbp),%rdi
mov    -0x13894(%rbp),%esi
call   1050 <lt100@plt>
mov    %rax,%rcx
movslq -0x13898(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x13898(%rbp)
jmp    1442 <main+0x302>
cmpl   $0x3e8,-0x13894(%rbp)
jge    143d <main+0x2fd>
lea    -0x13890(%rbp),%rdi
mov    -0x13894(%rbp),%esi
call   1040 <lt1000@plt>
mov    %rax,%rcx
movslq -0x13898(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x13898(%rbp)
jmp    1442 <main+0x302>
jmp    1447 <main+0x307>
jmp    144c <main+0x30c>
mov    -0x13894(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x13894(%rbp)
jmp    137a <main+0x23a>
mov    -0x13898(%rbp),%esi
lea    0xcbe(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x138a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x13880,%rsp
lea    0xfdc(%rip),%rax
mov    %rax,(%rsp)
lea    0xea3(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xe9b(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe93(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xe8d(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xe86(%rip),%rax
mov    %rax,0x28(%rsp)
lea    0xe7f(%rip),%rax
mov    %rax,0x30(%rsp)
lea    0xe77(%rip),%rax
mov    %rax,0x38(%rsp)
lea    0xe71(%rip),%rax
mov    %rax,0x40(%rsp)
lea    0xe6b(%rip),%rax
mov    %rax,0x48(%rsp)
lea    0xe64(%rip),%rax
mov    %rax,0x50(%rsp)
lea    0xe5c(%rip),%rax
mov    %rax,0x58(%rsp)
lea    0xe57(%rip),%rax
mov    %rax,0x60(%rsp)
lea    0xe52(%rip),%rax
mov    %rax,0x68(%rsp)
lea    0xe4f(%rip),%rax
mov    %rax,0x70(%rsp)
lea    0xe4c(%rip),%rax
mov    %rax,0x78(%rsp)
lea    0xe48(%rip),%rax
mov    %rax,0x80(%rsp)
lea    0xe41(%rip),%rax
mov    %rax,0x88(%rsp)
lea    0xe3c(%rip),%rax
mov    %rax,0x90(%rsp)
lea    0xe36(%rip),%rax
mov    %rax,0x98(%rsp)
lea    0xe30(%rip),%rax
mov    %rax,0xa0(%rsp)
lea    0xe28(%rip),%rax
mov    %rax,0xf0(%rsp)
lea    0xe20(%rip),%rax
mov    %rax,0x140(%rsp)
lea    0xe17(%rip),%rax
mov    %rax,0x190(%rsp)
lea    0xe0e(%rip),%rax
mov    %rax,0x1e0(%rsp)
lea    0xe05(%rip),%rax
mov    %rax,0x230(%rsp)
lea    0xdfe(%rip),%rax
mov    %rax,0x280(%rsp)
lea    0xdf6(%rip),%rax
mov    %rax,0x2d0(%rsp)
lea    0xdee(%rip),%rax
mov    %rax,0x320(%rsp)
lea    0xdea(%rip),%rax
mov    %rax,0x640(%rsp)
lea    0xde6(%rip),%rax
mov    %rax,0x960(%rsp)
lea    0xde4(%rip),%rax
mov    %rax,0xc80(%rsp)
lea    0xde1(%rip),%rax
mov    %rax,0xfa0(%rsp)
lea    0xdde(%rip),%rax
mov    %rax,0x12c0(%rsp)
lea    0xdda(%rip),%rax
mov    %rax,0x15e0(%rsp)
lea    0xdd8(%rip),%rax
mov    %rax,0x1900(%rsp)
lea    0xdd6(%rip),%rax
mov    %rax,0x1c20(%rsp)
lea    0xdd3(%rip),%rax
mov    %rax,0x1f40(%rsp)
xor    %ebp,%ebp
mov    $0xfffffc18,%ebx
mov    %rsp,%r14
jmp    136e <main+0x22e>
mov    %r14,%rdi
call   1060 <one@plt>
add    %eax,%ebp
inc    %ebx
je     1397 <main+0x257>
lea    0x3e9(%rbx),%esi
cmp    $0x15,%esi
jb     1360 <main+0x220>
cmp    $0xffffffff,%ebx
je     1360 <main+0x220>
mov    %r14,%rdi
cmp    $0x63,%esi
ja     1390 <main+0x250>
call   1050 <lt100@plt>
jmp    1368 <main+0x228>
nopl   (%rax)
call   1040 <lt1000@plt>
jmp    1368 <main+0x228>
lea    0xd8d(%rip),%rdi
mov    %ebp,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x13880,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [7 x i8] c"thirty\00"
@.str.22 = [6 x i8] c"forty\00"
@.str.23 = [6 x i8] c"fifty\00"
@.str.24 = [6 x i8] c"sixty\00"
@.str.25 = [8 x i8] c"seventy\00"
@.str.26 = [7 x i8] c"eighty\00"
@.str.27 = [7 x i8] c"ninety\00"
@.str.28 = [11 x i8] c"onehundred\00"
@.str.29 = [11 x i8] c"twohundred\00"
@.str.30 = [13 x i8] c"threehundred\00"
@.str.31 = [12 x i8] c"fourhundred\00"
@.str.32 = [12 x i8] c"fivehundred\00"
@.str.33 = [11 x i8] c"sixhundred\00"
@.str.34 = [13 x i8] c"sevenhundred\00"
@.str.35 = [13 x i8] c"eighthundred\00"
@.str.36 = [12 x i8] c"ninehundred\00"
@.str.37 = [12 x i8] c"onethousand\00"
@.str.38 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10000 x i8*]
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 0
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 5
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 6
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 7
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 8
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 9
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 10
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 11
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 12
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 13
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 14
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 15
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 16
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 17
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 18
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 19
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 20
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 30
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8** %26
%27 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 40
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 50
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i8** %28
%29 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 60
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 70
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i8** %30
%31 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 80
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8** %31
%32 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 90
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 100
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0), i8** %33
%34 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 200
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0), i8** %34
%35 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 300
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i8** %35
%36 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 400
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8** %36
%37 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 500
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0), i8** %37
%38 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 600
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8** %38
%39 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 700
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 800
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i8** %40
%41 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 900
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0), i8** %41
%42 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 1000
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i64 0, i64 0), i8** %42
store i32 0, i32* %4
store i32 1, i32* %3
br label %43
43: ; preds = %85, %0
%44 = load i32, i32* %3
%45 = icmp sle i32 %44, 1000
br i1 %45, label %46, label %88
46: ; preds = %43
%47 = load i32, i32* %3
%48 = icmp sle i32 %47, 20
br i1 %48, label %52, label %49
49: ; preds = %46
%50 = load i32, i32* %3
%51 = icmp eq i32 %50, 1000
br i1 %51, label %52, label %60
52: ; preds = %49, %46
%53 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 0
%54 = load i32, i32* %3
%55 = call i64 @one(i8** %53, i32 %54)
%56 = load i32, i32* %4
%57 = sext i32 %56 to i64
%58 = add nsw i64 %57, %55
%59 = trunc i64 %58 to i32
store i32 %59, i32* %4
br label %84
60: ; preds = %49
%61 = load i32, i32* %3
%62 = icmp slt i32 %61, 100
br i1 %62, label %63, label %71
63: ; preds = %60
%64 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 0
%65 = load i32, i32* %3
%66 = call i64 @lt100(i8** %64, i32 %65)
%67 = load i32, i32* %4
%68 = sext i32 %67 to i64
%69 = add nsw i64 %68, %66
%70 = trunc i64 %69 to i32
store i32 %70, i32* %4
br label %83
71: ; preds = %60
%72 = load i32, i32* %3
%73 = icmp slt i32 %72, 1000
br i1 %73, label %74, label %82
74: ; preds = %71
%75 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %2, i64 0, i64 0
%76 = load i32, i32* %3
%77 = call i64 @lt1000(i8** %75, i32 %76)
%78 = load i32, i32* %4
%79 = sext i32 %78 to i64
%80 = add nsw i64 %79, %77
%81 = trunc i64 %80 to i32
store i32 %81, i32* %4
br label %82
82: ; preds = %74, %71
br label %83
83: ; preds = %82, %63
br label %84
84: ; preds = %83, %52
br label %85
85: ; preds = %84
%86 = load i32, i32* %3
%87 = add nsw i32 %86, 1
store i32 %87, i32* %3
br label %43
88: ; preds = %43
%89 = load i32, i32* %4
%90 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.38, i64 0, i64 0), i32 %89)
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [7 x i8] c"thirty\00"
@.str.22 = [6 x i8] c"forty\00"
@.str.23 = [6 x i8] c"fifty\00"
@.str.24 = [6 x i8] c"sixty\00"
@.str.25 = [8 x i8] c"seventy\00"
@.str.26 = [7 x i8] c"eighty\00"
@.str.27 = [7 x i8] c"ninety\00"
@.str.28 = [11 x i8] c"onehundred\00"
@.str.29 = [11 x i8] c"twohundred\00"
@.str.30 = [13 x i8] c"threehundred\00"
@.str.31 = [12 x i8] c"fourhundred\00"
@.str.32 = [12 x i8] c"fivehundred\00"
@.str.33 = [11 x i8] c"sixhundred\00"
@.str.34 = [13 x i8] c"sevenhundred\00"
@.str.35 = [13 x i8] c"eighthundred\00"
@.str.36 = [12 x i8] c"ninehundred\00"
@.str.37 = [12 x i8] c"onethousand\00"
@.str.38 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [10000 x i8*]
%2 = bitcast [10000 x i8*]* %1 to i8*
%3 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 5
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %8
%9 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 6
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 7
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8** %10
%11 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 8
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 9
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8** %12
%13 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 10
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i8** %13
%14 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 11
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i8** %14
%15 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 12
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 13
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0), i8** %16
%17 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 14
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i8** %17
%18 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 15
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i64 0, i64 0), i8** %18
%19 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 16
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i8** %19
%20 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 17
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 18
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 19
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i64 0, i64 0), i8** %22
%23 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 20
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i8** %23
%24 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 30
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8** %24
%25 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 40
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 50
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i8** %26
%27 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 60
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 70
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i8** %28
%29 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 80
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 90
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i8** %30
%31 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 100
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.28, i64 0, i64 0), i8** %31
%32 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 200
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.29, i64 0, i64 0), i8** %32
%33 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 300
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i8** %33
%34 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 400
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.31, i64 0, i64 0), i8** %34
%35 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 500
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.32, i64 0, i64 0), i8** %35
%36 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 600
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.33, i64 0, i64 0), i8** %36
%37 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 700
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i8** %37
%38 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 800
store i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i8** %38
%39 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 900
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.36, i64 0, i64 0), i8** %39
%40 = getelementptr inbounds [10000 x i8*], [10000 x i8*]* %1, i64 0, i64 1000
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i64 0, i64 0), i8** %40
br label %41
41: ; preds = %0, %55
%42 = phi i32 [ 0, %0 ], [ %58, %55 ]
%43 = phi i32 [ 1, %0 ], [ %59, %55 ]
%44 = icmp ult i32 %43, 21
%45 = icmp eq i32 %43, 1000
%46 = or i1 %44, %45
br i1 %46, label %47, label %49
47: ; preds = %41
%48 = call i64 @one(i8** %3, i32 %43)
br label %55
49: ; preds = %41
%50 = icmp ult i32 %43, 100
br i1 %50, label %51, label %53
51: ; preds = %49
%52 = call i64 @lt100(i8** %3, i32 %43)
br label %55
53: ; preds = %49
%54 = call i64 @lt1000(i8** %3, i32 %43)
br label %55
55: ; preds = %47, %53, %51
%56 = phi i64 [ %48, %47 ], [ %54, %53 ], [ %52, %51 ]
%57 = trunc i64 %56 to i32
%58 = add i32 %42, %57
%59 = add nuw nsw i32 %43, 1
%60 = icmp eq i32 %59, 1001
br i1 %60, label %61, label %41
61: ; preds = %55
%62 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.38, i64 0, i64 0), i32 %58)
ret i32 0
}