#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 *);
void num(long long a) {
  int p, q, r;
  p = a / 100;
  if (p > 0) {
    switch (p) {
    case 1:
      printf("One ");
      break;
    case 2:
      printf("Two ");
      break;
    case 3:
      printf("Three ");
      break;
    case 4:
      printf("Four ");
      break;
    case 5:
      printf("Five ");
      break;
    case 6:
      printf("Six ");
      break;
    case 7:
      printf("Seven ");
      break;
    case 8:
      printf("Eight ");
      break;
    case 9:
      printf("Nine ");
    }
    printf("Hundred ");
  }
  p = a % 100;
  if (p <= 20) {
    switch (p) {
    case 1:
      printf("One ");
      break;
    case 2:
      printf("Two ");
      break;
    case 3:
      printf("Three ");
      break;
    case 4:
      printf("Four ");
      break;
    case 5:
      printf("Five ");
      break;
    case 6:
      printf("Six ");
      break;
    case 7:
      printf("Seven ");
      break;
    case 8:
      printf("Eight ");
      break;
    case 9:
      printf("Nine ");
    case 10:
      printf("Ten ");
      break;
    case 11:
      printf("Eleven ");
      break;
    case 12:
      printf("Twelve ");
      break;
    case 13:
      printf("Thirteen ");
      break;
    case 14:
      printf("Fourteen ");
      break;
    case 15:
      printf("Fifteen ");
      break;
    case 16:
      printf("Sixteen ");
      break;
    case 17:
      printf("Seventeen ");
      break;
    case 18:
      printf("Eighteen ");
      break;
    case 19:
      printf("Nineteen ");
      break;
    case 20:
      printf("Twenty ");
      break;
    }
  }
  if (p > 20) {
    q = p / 10;
    r = p % 10;
    switch (q) {
    case 2:
      printf("Twenty ");
      break;
    case 3:
      printf("Thirty ");
      break;
    case 4:
      printf("Forty ");
      break;
    case 5:
      printf("Fifty ");
      break;
    case 6:
      printf("Sixty ");
      break;
    case 7:
      printf("Seventy ");
      break;
    case 8:
      printf("Eighty ");
      break;
    case 9:
      printf("Ninety ");
    }
    switch (r) {
    case 1:
      printf("One ");
      break;
    case 2:
      printf("Two ");
      break;
    case 3:
      printf("Three ");
      break;
    case 4:
      printf("Four ");
      break;
    case 5:
      printf("Five ");
      break;
    case 6:
      printf("Six ");
      break;
    case 7:
      printf("Seven ");
      break;
    case 8:
      printf("Eight ");
      break;
    case 9:
      printf("Nine ");
    }
  }
}


x86 assembly (clang, -O0):
<num>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    $0x64,%ecx
cqto
idiv   %rcx
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1200 <num+0xf0>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x8,%eax
ja     11f4 <num+0xe4>
mov    -0x20(%rbp),%rax
lea    0xea9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf51(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf45(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf39(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf24(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xf03(%rip),%rdi
call   1030 <printf@plt>
jmp    11f4 <num+0xe4>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    $0x64,%ecx
cqto
idiv   %rcx
mov    %edx,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x14,-0xc(%rbp)
jg     1395 <num+0x285>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x28(%rbp)
sub    $0x13,%eax
ja     1390 <num+0x280>
mov    -0x28(%rbp),%rax
lea    0xde7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe6b(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe13(%rip),%rdi
call   1030 <printf@plt>
lea    0xe16(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe0a(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xe01(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdf8(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdf1(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdea(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xde2(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdd4(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdcd(%rip),%rdi
call   1030 <printf@plt>
jmp    1390 <num+0x280>
lea    0xdc6(%rip),%rdi
call   1030 <printf@plt>
jmp    1395 <num+0x285>
cmpl   $0x14,-0xc(%rbp)
jle    154e <num+0x43e>
movslq -0xc(%rbp),%rax
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
movslq -0xc(%rbp),%rcx
mov    %ecx,%eax
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rdx
add    %ecx,%edx
add    %edx,%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x7,%eax
ja     148c <num+0x37c>
mov    -0x30(%rbp),%rax
lea    0xc74(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd41(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd38(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd2f(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd25(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd1b(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd11(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd09(%rip),%rdi
call   1030 <printf@plt>
jmp    148c <num+0x37c>
lea    0xd00(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x38(%rbp)
sub    $0x8,%eax
ja     1549 <num+0x439>
mov    -0x38(%rbp),%rax
lea    0xbe8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xbfc(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbf0(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbe4(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbda(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbcf(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbc4(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbb8(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xbae(%rip),%rdi
call   1030 <printf@plt>
jmp    1549 <num+0x439>
lea    0xba4(%rip),%rdi
call   1030 <printf@plt>
jmp    154e <num+0x43e>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<num>:
push   %rbx
mov    %rdi,%rbx
movabs $0xa3d70a3d70a3d70b,%rcx
0a d7 a3
mov    %rdi,%rax
imul   %rcx
add    %rdi,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x6,%rdx
add    %rax,%rdx
imul   $0x64,%rdx,%rax
sub    %rax,%rbx
test   %edx,%edx
jle    1167 <num+0x57>
add    $0xffffffff,%edx
cmp    $0x8,%edx
ja     115b <num+0x4b>
movslq %edx,%rax
lea    0x2c86(%rip),%rcx
mov    (%rcx,%rax,8),%rdi
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
call   1030 <printf@plt>
cmp    $0x14,%ebx
jg     1198 <num+0x88>
lea    -0x1(%rbx),%eax
cmp    $0x13,%eax
ja     11e8 <num+0xd8>
lea    0xef5(%rip),%rdi
lea    0xe7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xee3(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
movzbl %bl,%eax
imul   $0xcd,%eax,%eax
shr    $0xb,%eax
lea    (%rax,%rax,1),%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%bl
movzbl %bl,%ebx
add    $0xfffffffe,%eax
cmp    $0x7,%eax
ja     11cc <num+0xbc>
cltq
lea    0xe90(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1030 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x8,%ebx
ja     11e8 <num+0xd8>
movslq %ebx,%rax
lea    0x2bfa(%rip),%rcx
mov    (%rcx,%rax,8),%rdi
pop    %rbx
jmp    1030 <printf@plt>
pop    %rbx
ret
lea    0xe89(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe83(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe7c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe75(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe6d(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe67(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
lea    0xe64(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe5c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe57(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe52(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe4f(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe4c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe48(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe44(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe42(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe3f(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe3c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"One \00"
@.str.1 = [5 x i8] c"Two \00"
@.str.2 = [7 x i8] c"Three \00"
@.str.3 = [6 x i8] c"Four \00"
@.str.4 = [6 x i8] c"Five \00"
@.str.5 = [5 x i8] c"Six \00"
@.str.6 = [7 x i8] c"Seven \00"
@.str.7 = [7 x i8] c"Eight \00"
@.str.8 = [6 x i8] c"Nine \00"
@.str.9 = [9 x i8] c"Hundred \00"
@.str.10 = [5 x i8] c"Ten \00"
@.str.11 = [8 x i8] c"Eleven \00"
@.str.12 = [8 x i8] c"Twelve \00"
@.str.13 = [10 x i8] c"Thirteen \00"
@.str.14 = [10 x i8] c"Fourteen \00"
@.str.15 = [9 x i8] c"Fifteen \00"
@.str.16 = [9 x i8] c"Sixteen \00"
@.str.17 = [11 x i8] c"Seventeen \00"
@.str.18 = [10 x i8] c"Eighteen \00"
@.str.19 = [10 x i8] c"Nineteen \00"
@.str.20 = [8 x i8] c"Twenty \00"
@.str.21 = [8 x i8] c"Thirty \00"
@.str.22 = [7 x i8] c"Forty \00"
@.str.23 = [7 x i8] c"Fifty \00"
@.str.24 = [7 x i8] c"Sixty \00"
@.str.25 = [9 x i8] c"Seventy \00"
@.str.26 = [8 x i8] c"Eighty \00"
@.str.27 = [8 x i8] c"Ninety \00"
define void @num(i64 %0) {
%2 = alloca i64
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i64 %0, i64* %2
%6 = load i64, i64* %2
%7 = sdiv i64 %6, 100
%8 = trunc i64 %7 to i32
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %33
11: ; preds = %1
%12 = load i32, i32* %3
switch i32 %12, label %31 [
i32 1, label %13
i32 2, label %15
i32 3, label %17
i32 4, label %19
i32 5, label %21
i32 6, label %23
i32 7, label %25
i32 8, label %27
i32 9, label %29
]
13: ; preds = %11
%14 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %31
15: ; preds = %11
%16 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %31
17: ; preds = %11
%18 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %31
19: ; preds = %11
%20 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %31
21: ; preds = %11
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %31
23: ; preds = %11
%24 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %31
25: ; preds = %11
%26 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %31
27: ; preds = %11
%28 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %31
29: ; preds = %11
%30 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %31
31: ; preds = %29, %11, %27, %25, %23, %21, %19, %17, %15, %13
%32 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %33
33: ; preds = %31, %1
%34 = load i64, i64* %2
%35 = srem i64 %34, 100
%36 = trunc i64 %35 to i32
store i32 %36, i32* %3
%37 = load i32, i32* %3
%38 = icmp sle i32 %37, 20
br i1 %38, label %39, label %82
39: ; preds = %33
%40 = load i32, i32* %3
switch i32 %40, label %81 [
i32 1, label %41
i32 2, label %43
i32 3, label %45
i32 4, label %47
i32 5, label %49
i32 6, label %51
i32 7, label %53
i32 8, label %55
i32 9, label %57
i32 10, label %59
i32 11, label %61
i32 12, label %63
i32 13, label %65
i32 14, label %67
i32 15, label %69
i32 16, label %71
i32 17, label %73
i32 18, label %75
i32 19, label %77
i32 20, label %79
]
41: ; preds = %39
%42 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %81
43: ; preds = %39
%44 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %81
45: ; preds = %39
%46 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %81
47: ; preds = %39
%48 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %81
49: ; preds = %39
%50 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %81
51: ; preds = %39
%52 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %81
53: ; preds = %39
%54 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %81
55: ; preds = %39
%56 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %81
57: ; preds = %39
%58 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %59
59: ; preds = %39, %57
%60 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %81
61: ; preds = %39
%62 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %81
63: ; preds = %39
%64 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %81
65: ; preds = %39
%66 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
br label %81
67: ; preds = %39
%68 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %81
69: ; preds = %39
%70 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0))
br label %81
71: ; preds = %39
%72 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
br label %81
73: ; preds = %39
%74 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
br label %81
75: ; preds = %39
%76 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
br label %81
77: ; preds = %39
%78 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
br label %81
79: ; preds = %39
%80 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
br label %81
81: ; preds = %39, %79, %77, %75, %73, %71, %69, %67, %65, %63, %61, %59, %55, %53, %51, %49, %47, %45, %43, %41
br label %82
82: ; preds = %81, %33
%83 = load i32, i32* %3
%84 = icmp sgt i32 %83, 20
br i1 %84, label %85, label %128
85: ; preds = %82
%86 = load i32, i32* %3
%87 = sdiv i32 %86, 10
store i32 %87, i32* %4
%88 = load i32, i32* %3
%89 = srem i32 %88, 10
store i32 %89, i32* %5
%90 = load i32, i32* %4
switch i32 %90, label %107 [
i32 2, label %91
i32 3, label %93
i32 4, label %95
i32 5, label %97
i32 6, label %99
i32 7, label %101
i32 8, label %103
i32 9, label %105
]
91: ; preds = %85
%92 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0))
br label %107
93: ; preds = %85
%94 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.21, i64 0, i64 0))
br label %107
95: ; preds = %85
%96 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %107
97: ; preds = %85
%98 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
br label %107
99: ; preds = %85
%100 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.24, i64 0, i64 0))
br label %107
101: ; preds = %85
%102 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
br label %107
103: ; preds = %85
%104 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.26, i64 0, i64 0))
br label %107
105: ; preds = %85
%106 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.27, i64 0, i64 0))
br label %107
107: ; preds = %105, %85, %103, %101, %99, %97, %95, %93, %91
%108 = load i32, i32* %5
switch i32 %108, label %127 [
i32 1, label %109
i32 2, label %111
i32 3, label %113
i32 4, label %115
i32 5, label %117
i32 6, label %119
i32 7, label %121
i32 8, label %123
i32 9, label %125
]
109: ; preds = %107
%110 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %127
111: ; preds = %107
%112 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
br label %127
113: ; preds = %107
%114 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %127
115: ; preds = %107
%116 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %127
117: ; preds = %107
%118 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %127
119: ; preds = %107
%120 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %127
121: ; preds = %107
%122 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %127
123: ; preds = %107
%124 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
br label %127
125: ; preds = %107
%126 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %127
127: ; preds = %125, %107, %123, %121, %119, %117, %115, %113, %111, %109
br label %128
128: ; preds = %127, %82
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"One \00"
@.str.1 = [5 x i8] c"Two \00"
@.str.2 = [7 x i8] c"Three \00"
@.str.3 = [6 x i8] c"Four \00"
@.str.4 = [6 x i8] c"Five \00"
@.str.5 = [5 x i8] c"Six \00"
@.str.6 = [7 x i8] c"Seven \00"
@.str.7 = [7 x i8] c"Eight \00"
@.str.8 = [6 x i8] c"Nine \00"
@.str.9 = [9 x i8] c"Hundred \00"
@.str.10 = [5 x i8] c"Ten \00"
@.str.11 = [8 x i8] c"Eleven \00"
@.str.12 = [8 x i8] c"Twelve \00"
@.str.13 = [10 x i8] c"Thirteen \00"
@.str.14 = [10 x i8] c"Fourteen \00"
@.str.15 = [9 x i8] c"Fifteen \00"
@.str.16 = [9 x i8] c"Sixteen \00"
@.str.17 = [11 x i8] c"Seventeen \00"
@.str.18 = [10 x i8] c"Eighteen \00"
@.str.19 = [10 x i8] c"Nineteen \00"
@.str.20 = [8 x i8] c"Twenty \00"
@.str.21 = [8 x i8] c"Thirty \00"
@.str.22 = [7 x i8] c"Forty \00"
@.str.23 = [7 x i8] c"Fifty \00"
@.str.24 = [7 x i8] c"Sixty \00"
@.str.25 = [9 x i8] c"Seventy \00"
@.str.26 = [8 x i8] c"Eighty \00"
@.str.27 = [8 x i8] c"Ninety \00"
@reltable.num = [8 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.20 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.21 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.22 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.23 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.24 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.25 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.26 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.27 to i64), i64 ptrtoint ([8 x i32]* @reltable.num to i64)) to i32)]
@switch.table.num.29 = [9 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0)]
define void @num(i64 %0) {
%2 = sdiv i64 %0, 100
%3 = srem i64 %0, 100
%4 = trunc i64 %2 to i32
%5 = icmp sgt i32 %4, 0
br i1 %5, label %6, label %16
6: ; preds = %1
%7 = add i32 %4, -1
%8 = icmp ult i32 %7, 9
br i1 %8, label %9, label %14
9: ; preds = %6
%10 = sext i32 %7 to i64
%11 = getelementptr inbounds [9 x i8*], [9 x i8*]* @switch.table.num.29, i64 0, i64 %10
%12 = load i8*, i8** %11
%13 = tail call i32 @printf(i8* dereferenceable(1) %12)
br label %14
14: ; preds = %6, %9
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
br label %16
16: ; preds = %14, %1
%17 = trunc i64 %3 to i32
%18 = icmp slt i32 %17, 21
br i1 %18, label %19, label %40
19: ; preds = %16
switch i32 %17, label %63 [
i32 1, label %60
i32 2, label %20
i32 3, label %21
i32 4, label %22
i32 5, label %23
i32 6, label %24
i32 7, label %25
i32 8, label %26
i32 9, label %27
i32 10, label %29
i32 11, label %30
i32 12, label %31
i32 13, label %32
i32 14, label %33
i32 15, label %34
i32 16, label %35
i32 17, label %36
i32 18, label %37
i32 19, label %38
i32 20, label %39
]
20: ; preds = %19
br label %60
21: ; preds = %19
br label %60
22: ; preds = %19
br label %60
23: ; preds = %19
br label %60
24: ; preds = %19
br label %60
25: ; preds = %19
br label %60
26: ; preds = %19
br label %60
27: ; preds = %19
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %29
29: ; preds = %19, %27
br label %60
30: ; preds = %19
br label %60
31: ; preds = %19
br label %60
32: ; preds = %19
br label %60
33: ; preds = %19
br label %60
34: ; preds = %19
br label %60
35: ; preds = %19
br label %60
36: ; preds = %19
br label %60
37: ; preds = %19
br label %60
38: ; preds = %19
br label %60
39: ; preds = %19
br label %60
40: ; preds = %16
%41 = trunc i64 %3 to i8
%42 = udiv i8 %41, 10
%43 = zext i8 %42 to i32
%44 = urem i8 %41, 10
%45 = zext i8 %44 to i32
%46 = add nsw i32 %43, -2
%47 = icmp ult i32 %46, 8
br i1 %47, label %48, label %53
48: ; preds = %40
%49 = sext i32 %46 to i64
%50 = shl i64 %49, 2
%51 = call i8* @llvm.load.relative.i64(i8* bitcast ([8 x i32]* @reltable.num to i8*), i64 %50)
%52 = tail call i32 @printf(i8* dereferenceable(1) %51)
br label %53
53: ; preds = %40, %48
%54 = add nsw i32 %45, -1
%55 = icmp ult i32 %54, 9
br i1 %55, label %56, label %63
56: ; preds = %53
%57 = sext i32 %54 to i64
%58 = getelementptr inbounds [9 x i8*], [9 x i8*]* @switch.table.num.29, i64 0, i64 %57
%59 = load i8*, i8** %58
br label %60
60: ; preds = %56, %19, %20, %21, %22, %23, %24, %25, %26, %29, %30, %31, %32, %33, %34, %35, %36, %37, %38, %39
%61 = phi i8* [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.20, i64 0, i64 0), %39 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), %38 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), %37 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0), %36 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), %35 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i64 0, i64 0), %34 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), %33 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), %32 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), %31 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), %30 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), %29 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), %26 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), %25 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %24 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), %23 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), %22 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %21 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), %20 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %19 ], [ %59, %56 ]
%62 = tail call i32 @printf(i8* dereferenceable(1) %61)
br label %63
63: ; preds = %53, %60, %19
ret void
}