#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 Hundred(int);
int Remain(int);
int Unit_of(int);
int Whole(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int W, R, H, Unit;
  char *Num_Word[] = {
      "zero",     "one",      "two",      "three",    "four",       "five",
      "six",      "seven",    "eight",    "nine",     "ten",        "eleven",
      "twelve",   "thirteen", "fourteen", "fiftheen", "sixteen",    "seventeen",
      "eighteen", "nineteen", "twenty",   "thirty",   "fourty",     "fifty",
      "sixty",    "seventy",  "eighty",   "ninety",   "One hundred"};
  int Num;
  printf("Enter a number: ");
  scanf("%d", &Num);
  if (Num < 0)
    printf("You inputed an invalid number.\n");
  else if (Num <= 20)
    printf("The number is: %s.\n", *(Num_Word + Num));
  else if (Num == 30)
    printf("The number is: %s.\n", *(Num_Word + 21));
  else if (Num == 40)
    printf("The number is: %s.\n", *(Num_Word + 22));
  else if (Num == 50)
    printf("The number is: %s.\n", *(Num_Word + 23));
  else if (Num == 60)
    printf("The number is: %s.\n", *(Num_Word + 24));
  else if (Num == 70)
    printf("The number is: %s.\n", *(Num_Word + 25));
  else if (Num == 80)
    printf("The number is: %s.\n", *(Num_Word + 26));
  else if (Num == 90)
    printf("The number is: %s.\n", *(Num_Word + 27));
  else if (Num == 100)
    printf("The number is: %s.\n", *(Num_Word + 28));
  else if (Num > 20 && Num < 30) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 20),
           *(Num_Word + R));
  } else if (Num > 30 && Num < 40) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 21),
           *(Num_Word + R));
  } else if (Num > 40 && Num < 50) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 22),
           *(Num_Word + R));
  } else if (Num > 50 && Num < 60) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 23),
           *(Num_Word + R));
  } else if (Num > 60 && Num < 70) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 24),
           *(Num_Word + R));
  } else if (Num > 70 && Num < 80) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 25),
           *(Num_Word + R));
  } else if (Num > 80 && Num < 90) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 26),
           *(Num_Word + R));
  } else if (Num > 90 && Num < 100) {
    W = Whole(Num);
    R = Remain(Num);
    printf("The number in words is: %s %s.\n", *(Num_Word + 27),
           *(Num_Word + R));
  } else if (Num > 100 && Num < 1000) {
    H = Hundred(Num);
    Unit = Unit_of(Num);
    R = Remain(Unit);
    if (Unit_of(Num) <= 20)
      printf("The number is: %s hundred and %s.\n", *(Num_Word + H),
             *(Num_Word + Unit));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x100(%rbp),%rdi
lea    0x2ba0(%rip),%rsi
mov    $0xe8,%edx
call   1060 <memcpy@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xf28(%rip),%rdi
lea    -0x104(%rbp),%rsi
call   1080 <scanf@plt>
cmpl   $0x0,-0x104(%rbp)
jge    11db <main+0x6b>
lea    0xf0b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16cf <main+0x55f>
cmpl   $0x14,-0x104(%rbp)
jg     120a <main+0x9a>
movslq -0x104(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rsi
ff
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16ca <main+0x55a>
cmpl   $0x1e,-0x104(%rbp)
jne    122e <main+0xbe>
mov    -0x58(%rbp),%rsi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16c5 <main+0x555>
cmpl   $0x28,-0x104(%rbp)
jne    1252 <main+0xe2>
mov    -0x50(%rbp),%rsi
lea    0xeb4(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16c0 <main+0x550>
cmpl   $0x32,-0x104(%rbp)
jne    1276 <main+0x106>
mov    -0x48(%rbp),%rsi
lea    0xe90(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16bb <main+0x54b>
cmpl   $0x3c,-0x104(%rbp)
jne    129a <main+0x12a>
mov    -0x40(%rbp),%rsi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16b6 <main+0x546>
cmpl   $0x46,-0x104(%rbp)
jne    12be <main+0x14e>
mov    -0x38(%rbp),%rsi
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16b1 <main+0x541>
cmpl   $0x50,-0x104(%rbp)
jne    12e2 <main+0x172>
mov    -0x30(%rbp),%rsi
lea    0xe24(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16ac <main+0x53c>
cmpl   $0x5a,-0x104(%rbp)
jne    1306 <main+0x196>
mov    -0x28(%rbp),%rsi
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16a7 <main+0x537>
cmpl   $0x64,-0x104(%rbp)
jne    132a <main+0x1ba>
mov    -0x20(%rbp),%rsi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    16a2 <main+0x532>
cmpl   $0x14,-0x104(%rbp)
jle    1383 <main+0x213>
cmpl   $0x1e,-0x104(%rbp)
jge    1383 <main+0x213>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x60(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    169d <main+0x52d>
cmpl   $0x1e,-0x104(%rbp)
jle    13dc <main+0x26c>
cmpl   $0x28,-0x104(%rbp)
jge    13dc <main+0x26c>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x58(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xd3e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1698 <main+0x528>
cmpl   $0x28,-0x104(%rbp)
jle    1435 <main+0x2c5>
cmpl   $0x32,-0x104(%rbp)
jge    1435 <main+0x2c5>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x50(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1693 <main+0x523>
cmpl   $0x32,-0x104(%rbp)
jle    148e <main+0x31e>
cmpl   $0x3c,-0x104(%rbp)
jge    148e <main+0x31e>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x48(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xc8c(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    168e <main+0x51e>
cmpl   $0x3c,-0x104(%rbp)
jle    14e7 <main+0x377>
cmpl   $0x46,-0x104(%rbp)
jge    14e7 <main+0x377>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x40(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xc33(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1689 <main+0x519>
cmpl   $0x46,-0x104(%rbp)
jle    1540 <main+0x3d0>
cmpl   $0x50,-0x104(%rbp)
jge    1540 <main+0x3d0>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x38(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xbda(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1684 <main+0x514>
cmpl   $0x50,-0x104(%rbp)
jle    1599 <main+0x429>
cmpl   $0x5a,-0x104(%rbp)
jge    1599 <main+0x429>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x30(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xb81(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    167f <main+0x50f>
cmpl   $0x5a,-0x104(%rbp)
jle    15f2 <main+0x482>
cmpl   $0x64,-0x104(%rbp)
jge    15f2 <main+0x482>
mov    -0x104(%rbp),%edi
call   1070 <Whole@plt>
mov    %eax,-0x8(%rbp)
mov    -0x104(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x28(%rbp),%rsi
movslq -0xc(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xb28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    167a <main+0x50a>
cmpl   $0x64,-0x104(%rbp)
jle    1675 <main+0x505>
cmpl   $0x3e8,-0x104(%rbp)
jge    1675 <main+0x505>
mov    -0x104(%rbp),%edi
call   1040 <Hundred@plt>
mov    %eax,-0x10(%rbp)
mov    -0x104(%rbp),%edi
call   1030 <Unit_of@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
call   1090 <Remain@plt>
mov    %eax,-0xc(%rbp)
mov    -0x104(%rbp),%edi
call   1030 <Unit_of@plt>
cmp    $0x14,%eax
jg     1670 <main+0x500>
movslq -0x10(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rsi
ff
movslq -0x14(%rbp),%rax
mov    -0x100(%rbp,%rax,8),%rdx
ff
lea    0xac5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1675 <main+0x505>
jmp    167a <main+0x50a>
jmp    167f <main+0x50f>
jmp    1684 <main+0x514>
jmp    1689 <main+0x519>
jmp    168e <main+0x51e>
jmp    1693 <main+0x523>
jmp    1698 <main+0x528>
jmp    169d <main+0x52d>
jmp    16a2 <main+0x532>
jmp    16a7 <main+0x537>
jmp    16ac <main+0x53c>
jmp    16b1 <main+0x541>
jmp    16b6 <main+0x546>
jmp    16bb <main+0x54b>
jmp    16c0 <main+0x550>
jmp    16c5 <main+0x555>
jmp    16ca <main+0x55a>
jmp    16cf <main+0x55f>
xor    %eax,%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
lea    0x1068(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x106b(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1080 <scanf@plt>
mov    0x4(%rsp),%edi
test   %edi,%edi
js     11ba <main+0x4a>
cmp    $0x14,%edi
ja     11cf <main+0x5f>
lea    0x2b8a(%rip),%rax
mov    (%rax,%rdi,8),%rsi
lea    0x1045(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11c6 <main+0x56>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
lea    -0x1e(%rdi),%eax
cmp    $0x46,%eax
ja     11f7 <main+0x87>
lea    0xe22(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x1008(%rip),%rdi
lea    0xfb1(%rip),%rsi
jmp    11b1 <main+0x41>
cmp    $0x1d,%edi
ja     12b3 <main+0x143>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x2b19(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xfe8(%rip),%rdi
lea    0xf76(%rip),%rsi
jmp    1481 <main+0x311>
lea    0xfc1(%rip),%rdi
lea    0xf71(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xfae(%rip),%rdi
lea    0xf65(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xf9b(%rip),%rdi
lea    0xf58(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xf88(%rip),%rdi
lea    0xf4b(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xf75(%rip),%rdi
lea    0xf40(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xf62(%rip),%rdi
lea    0xf34(%rip),%rsi
jmp    11b1 <main+0x41>
lea    0xf4f(%rip),%rdi
lea    0xf28(%rip),%rsi
jmp    11b1 <main+0x41>
cmp    $0x1e,%edi
je     12eb <main+0x17b>
cmp    $0x27,%edi
ja     12eb <main+0x17b>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x2a5c(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xf2b(%rip),%rdi
lea    0xec0(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x29(%rdi),%eax
cmp    $0x8,%eax
ja     1321 <main+0x1b1>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x2a26(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xef5(%rip),%rdi
lea    0xe91(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x33(%rdi),%eax
cmp    $0x8,%eax
ja     1357 <main+0x1e7>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x29f0(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xebf(%rip),%rdi
lea    0xe62(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x3d(%rdi),%eax
cmp    $0x8,%eax
ja     138d <main+0x21d>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x29ba(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xe89(%rip),%rdi
lea    0xe32(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x47(%rdi),%eax
cmp    $0x8,%eax
ja     13c3 <main+0x253>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x2984(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xe53(%rip),%rdi
lea    0xe02(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x51(%rdi),%eax
cmp    $0x8,%eax
ja     13f9 <main+0x289>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x294e(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xe1d(%rip),%rdi
lea    0xdd4(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x5b(%rdi),%eax
cmp    $0x8,%eax
ja     142c <main+0x2bc>
call   1070 <Whole@plt>
mov    0x4(%rsp),%edi
call   1090 <Remain@plt>
cltq
lea    0x2918(%rip),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xde7(%rip),%rdi
lea    0xda5(%rip),%rsi
jmp    1481 <main+0x311>
lea    -0x65(%rdi),%eax
cmp    $0x382,%eax
ja     11c6 <main+0x56>
call   1050 <Hundred@plt>
mov    %eax,%ebx
mov    0x4(%rsp),%edi
call   1040 <Unit_of@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1090 <Remain@plt>
mov    0x4(%rsp),%edi
call   1040 <Unit_of@plt>
cmp    $0x14,%eax
jg     11c6 <main+0x56>
movslq %ebx,%rax
lea    0x28c1(%rip),%rcx
mov    (%rcx,%rax,8),%rsi
movslq %ebp,%rax
mov    (%rcx,%rax,8),%rdx
lea    0xda9(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    11c6 <main+0x56>

LLVM IR (-O0):
@.str = [5 x i8] c"zero\00"
@.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 = [9 x i8] c"fiftheen\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 = [7 x i8] c"fourty\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 = [12 x i8] c"One hundred\00"
@__const.main.Num_Word = [29 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 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 ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([7 x i8], [7 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 ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 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 ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.28, i32 0, i32 0)]
@.str.29 = [17 x i8] c"Enter a number: \00"
@.str.30 = [3 x i8] c"%d\00"
@.str.31 = [32 x i8] c"You inputed an invalid number.\0A\00"
@.str.32 = [20 x i8] c"The number is: %s.\0A\00"
@.str.33 = [32 x i8] c"The number in words is: %s %s.\0A\00"
@.str.34 = [35 x i8] c"The number is: %s hundred and %s.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca [29 x i8*]
%7 = alloca i32
store i32 0, i32* %1
%8 = bitcast [29 x i8*]* %6 to i8*
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.29, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32* %7)
%11 = load i32, i32* %7
%12 = icmp slt i32 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.31, i64 0, i64 0))
br label %296
15: ; preds = %0
%16 = load i32, i32* %7
%17 = icmp sle i32 %16, 20
br i1 %17, label %18, label %25
18: ; preds = %15
%19 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%20 = load i32, i32* %7
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i8*, i8** %19, i64 %21
%23 = load i8*, i8** %22
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %23)
br label %295
25: ; preds = %15
%26 = load i32, i32* %7
%27 = icmp eq i32 %26, 30
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%30 = getelementptr inbounds i8*, i8** %29, i64 21
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %31)
br label %294
33: ; preds = %25
%34 = load i32, i32* %7
%35 = icmp eq i32 %34, 40
br i1 %35, label %36, label %41
36: ; preds = %33
%37 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%38 = getelementptr inbounds i8*, i8** %37, i64 22
%39 = load i8*, i8** %38
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %39)
br label %293
41: ; preds = %33
%42 = load i32, i32* %7
%43 = icmp eq i32 %42, 50
br i1 %43, label %44, label %49
44: ; preds = %41
%45 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%46 = getelementptr inbounds i8*, i8** %45, i64 23
%47 = load i8*, i8** %46
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %47)
br label %292
49: ; preds = %41
%50 = load i32, i32* %7
%51 = icmp eq i32 %50, 60
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%54 = getelementptr inbounds i8*, i8** %53, i64 24
%55 = load i8*, i8** %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %55)
br label %291
57: ; preds = %49
%58 = load i32, i32* %7
%59 = icmp eq i32 %58, 70
br i1 %59, label %60, label %65
60: ; preds = %57
%61 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%62 = getelementptr inbounds i8*, i8** %61, i64 25
%63 = load i8*, i8** %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %63)
br label %290
65: ; preds = %57
%66 = load i32, i32* %7
%67 = icmp eq i32 %66, 80
br i1 %67, label %68, label %73
68: ; preds = %65
%69 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%70 = getelementptr inbounds i8*, i8** %69, i64 26
%71 = load i8*, i8** %70
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %71)
br label %289
73: ; preds = %65
%74 = load i32, i32* %7
%75 = icmp eq i32 %74, 90
br i1 %75, label %76, label %81
76: ; preds = %73
%77 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%78 = getelementptr inbounds i8*, i8** %77, i64 27
%79 = load i8*, i8** %78
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %79)
br label %288
81: ; preds = %73
%82 = load i32, i32* %7
%83 = icmp eq i32 %82, 100
br i1 %83, label %84, label %89
84: ; preds = %81
%85 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%86 = getelementptr inbounds i8*, i8** %85, i64 28
%87 = load i8*, i8** %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %87)
br label %287
89: ; preds = %81
%90 = load i32, i32* %7
%91 = icmp sgt i32 %90, 20
br i1 %91, label %92, label %109
92: ; preds = %89
%93 = load i32, i32* %7
%94 = icmp slt i32 %93, 30
br i1 %94, label %95, label %109
95: ; preds = %92
%96 = load i32, i32* %7
%97 = call i32 @Whole(i32 %96)
store i32 %97, i32* %2
%98 = load i32, i32* %7
%99 = call i32 @Remain(i32 %98)
store i32 %99, i32* %3
%100 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%101 = getelementptr inbounds i8*, i8** %100, i64 20
%102 = load i8*, i8** %101
%103 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%104 = load i32, i32* %3
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds i8*, i8** %103, i64 %105
%107 = load i8*, i8** %106
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %102, i8* %107)
br label %286
109: ; preds = %92, %89
%110 = load i32, i32* %7
%111 = icmp sgt i32 %110, 30
br i1 %111, label %112, label %129
112: ; preds = %109
%113 = load i32, i32* %7
%114 = icmp slt i32 %113, 40
br i1 %114, label %115, label %129
115: ; preds = %112
%116 = load i32, i32* %7
%117 = call i32 @Whole(i32 %116)
store i32 %117, i32* %2
%118 = load i32, i32* %7
%119 = call i32 @Remain(i32 %118)
store i32 %119, i32* %3
%120 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%121 = getelementptr inbounds i8*, i8** %120, i64 21
%122 = load i8*, i8** %121
%123 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%124 = load i32, i32* %3
%125 = sext i32 %124 to i64
%126 = getelementptr inbounds i8*, i8** %123, i64 %125
%127 = load i8*, i8** %126
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %122, i8* %127)
br label %285
129: ; preds = %112, %109
%130 = load i32, i32* %7
%131 = icmp sgt i32 %130, 40
br i1 %131, label %132, label %149
132: ; preds = %129
%133 = load i32, i32* %7
%134 = icmp slt i32 %133, 50
br i1 %134, label %135, label %149
135: ; preds = %132
%136 = load i32, i32* %7
%137 = call i32 @Whole(i32 %136)
store i32 %137, i32* %2
%138 = load i32, i32* %7
%139 = call i32 @Remain(i32 %138)
store i32 %139, i32* %3
%140 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%141 = getelementptr inbounds i8*, i8** %140, i64 22
%142 = load i8*, i8** %141
%143 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%144 = load i32, i32* %3
%145 = sext i32 %144 to i64
%146 = getelementptr inbounds i8*, i8** %143, i64 %145
%147 = load i8*, i8** %146
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %142, i8* %147)
br label %284
149: ; preds = %132, %129
%150 = load i32, i32* %7
%151 = icmp sgt i32 %150, 50
br i1 %151, label %152, label %169
152: ; preds = %149
%153 = load i32, i32* %7
%154 = icmp slt i32 %153, 60
br i1 %154, label %155, label %169
155: ; preds = %152
%156 = load i32, i32* %7
%157 = call i32 @Whole(i32 %156)
store i32 %157, i32* %2
%158 = load i32, i32* %7
%159 = call i32 @Remain(i32 %158)
store i32 %159, i32* %3
%160 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%161 = getelementptr inbounds i8*, i8** %160, i64 23
%162 = load i8*, i8** %161
%163 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%164 = load i32, i32* %3
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds i8*, i8** %163, i64 %165
%167 = load i8*, i8** %166
%168 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %162, i8* %167)
br label %283
169: ; preds = %152, %149
%170 = load i32, i32* %7
%171 = icmp sgt i32 %170, 60
br i1 %171, label %172, label %189
172: ; preds = %169
%173 = load i32, i32* %7
%174 = icmp slt i32 %173, 70
br i1 %174, label %175, label %189
175: ; preds = %172
%176 = load i32, i32* %7
%177 = call i32 @Whole(i32 %176)
store i32 %177, i32* %2
%178 = load i32, i32* %7
%179 = call i32 @Remain(i32 %178)
store i32 %179, i32* %3
%180 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%181 = getelementptr inbounds i8*, i8** %180, i64 24
%182 = load i8*, i8** %181
%183 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%184 = load i32, i32* %3
%185 = sext i32 %184 to i64
%186 = getelementptr inbounds i8*, i8** %183, i64 %185
%187 = load i8*, i8** %186
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %182, i8* %187)
br label %282
189: ; preds = %172, %169
%190 = load i32, i32* %7
%191 = icmp sgt i32 %190, 70
br i1 %191, label %192, label %209
192: ; preds = %189
%193 = load i32, i32* %7
%194 = icmp slt i32 %193, 80
br i1 %194, label %195, label %209
195: ; preds = %192
%196 = load i32, i32* %7
%197 = call i32 @Whole(i32 %196)
store i32 %197, i32* %2
%198 = load i32, i32* %7
%199 = call i32 @Remain(i32 %198)
store i32 %199, i32* %3
%200 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%201 = getelementptr inbounds i8*, i8** %200, i64 25
%202 = load i8*, i8** %201
%203 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%204 = load i32, i32* %3
%205 = sext i32 %204 to i64
%206 = getelementptr inbounds i8*, i8** %203, i64 %205
%207 = load i8*, i8** %206
%208 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %202, i8* %207)
br label %281
209: ; preds = %192, %189
%210 = load i32, i32* %7
%211 = icmp sgt i32 %210, 80
br i1 %211, label %212, label %229
212: ; preds = %209
%213 = load i32, i32* %7
%214 = icmp slt i32 %213, 90
br i1 %214, label %215, label %229
215: ; preds = %212
%216 = load i32, i32* %7
%217 = call i32 @Whole(i32 %216)
store i32 %217, i32* %2
%218 = load i32, i32* %7
%219 = call i32 @Remain(i32 %218)
store i32 %219, i32* %3
%220 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%221 = getelementptr inbounds i8*, i8** %220, i64 26
%222 = load i8*, i8** %221
%223 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%224 = load i32, i32* %3
%225 = sext i32 %224 to i64
%226 = getelementptr inbounds i8*, i8** %223, i64 %225
%227 = load i8*, i8** %226
%228 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %222, i8* %227)
br label %280
229: ; preds = %212, %209
%230 = load i32, i32* %7
%231 = icmp sgt i32 %230, 90
br i1 %231, label %232, label %249
232: ; preds = %229
%233 = load i32, i32* %7
%234 = icmp slt i32 %233, 100
br i1 %234, label %235, label %249
235: ; preds = %232
%236 = load i32, i32* %7
%237 = call i32 @Whole(i32 %236)
store i32 %237, i32* %2
%238 = load i32, i32* %7
%239 = call i32 @Remain(i32 %238)
store i32 %239, i32* %3
%240 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%241 = getelementptr inbounds i8*, i8** %240, i64 27
%242 = load i8*, i8** %241
%243 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%244 = load i32, i32* %3
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i8*, i8** %243, i64 %245
%247 = load i8*, i8** %246
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* %242, i8* %247)
br label %279
249: ; preds = %232, %229
%250 = load i32, i32* %7
%251 = icmp sgt i32 %250, 100
br i1 %251, label %252, label %278
252: ; preds = %249
%253 = load i32, i32* %7
%254 = icmp slt i32 %253, 1000
br i1 %254, label %255, label %278
255: ; preds = %252
%256 = load i32, i32* %7
%257 = call i32 @Hundred(i32 %256)
store i32 %257, i32* %4
%258 = load i32, i32* %7
%259 = call i32 @Unit_of(i32 %258)
store i32 %259, i32* %5
%260 = load i32, i32* %5
%261 = call i32 @Remain(i32 %260)
store i32 %261, i32* %3
%262 = load i32, i32* %7
%263 = call i32 @Unit_of(i32 %262)
%264 = icmp sle i32 %263, 20
br i1 %264, label %265, label %277
265: ; preds = %255
%266 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%267 = load i32, i32* %4
%268 = sext i32 %267 to i64
%269 = getelementptr inbounds i8*, i8** %266, i64 %268
%270 = load i8*, i8** %269
%271 = getelementptr inbounds [29 x i8*], [29 x i8*]* %6, i64 0, i64 0
%272 = load i32, i32* %5
%273 = sext i32 %272 to i64
%274 = getelementptr inbounds i8*, i8** %271, i64 %273
%275 = load i8*, i8** %274
%276 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.34, i64 0, i64 0), i8* %270, i8* %275)
br label %277
277: ; preds = %265, %255
br label %278
278: ; preds = %277, %252, %249
br label %279
279: ; preds = %278, %235
br label %280
280: ; preds = %279, %215
br label %281
281: ; preds = %280, %195
br label %282
282: ; preds = %281, %175
br label %283
283: ; preds = %282, %155
br label %284
284: ; preds = %283, %135
br label %285
285: ; preds = %284, %115
br label %286
286: ; preds = %285, %95
br label %287
287: ; preds = %286, %84
br label %288
288: ; preds = %287, %76
br label %289
289: ; preds = %288, %68
br label %290
290: ; preds = %289, %60
br label %291
291: ; preds = %290, %52
br label %292
292: ; preds = %291, %44
br label %293
293: ; preds = %292, %36
br label %294
294: ; preds = %293, %28
br label %295
295: ; preds = %294, %18
br label %296
296: ; preds = %295, %13
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"zero\00"
@.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 = [9 x i8] c"fiftheen\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 = [7 x i8] c"fourty\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 = [12 x i8] c"One hundred\00"
@__const.main.Num_Word = [29 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 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 ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 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 ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 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 ([7 x i8], [7 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 ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 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 ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.28, i32 0, i32 0)]
@.str.29 = [17 x i8] c"Enter a number: \00"
@.str.30 = [3 x i8] c"%d\00"
@.str.32 = [20 x i8] c"The number is: %s.\0A\00"
@.str.33 = [32 x i8] c"The number in words is: %s %s.\0A\00"
@.str.34 = [35 x i8] c"The number is: %s hundred and %s.\0A\00"
@str = [31 x i8] c"You inputed an invalid number.\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.29, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.30, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
br label %140
9: ; preds = %0
%10 = icmp ult i32 %5, 21
br i1 %10, label %11, label %16
11: ; preds = %9
%12 = zext i32 %5 to i64
%13 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %12
%14 = load i8*, i8** %13
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* %14)
br label %140
16: ; preds = %9
switch i32 %5, label %33 [
i32 30, label %17
i32 40, label %19
i32 50, label %21
i32 60, label %23
i32 70, label %25
i32 80, label %27
i32 90, label %29
i32 100, label %31
]
17: ; preds = %16
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %140
19: ; preds = %16
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %140
21: ; preds = %16
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0))
br label %140
23: ; preds = %16
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
br label %140
25: ; preds = %16
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0))
br label %140
27: ; preds = %16
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0))
br label %140
29: ; preds = %16
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
br label %140
31: ; preds = %16
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.32, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.28, i64 0, i64 0))
br label %140
33: ; preds = %16
%34 = icmp ult i32 %5, 30
br i1 %34, label %35, label %43
35: ; preds = %33
%36 = call i32 @Whole(i32 %5)
%37 = load i32, i32* %1
%38 = call i32 @Remain(i32 %37)
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %39
%41 = load i8*, i8** %40
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i8* %41)
br label %140
43: ; preds = %33
%44 = icmp ne i32 %5, 30
%45 = icmp ult i32 %5, 40
%46 = and i1 %44, %45
br i1 %46, label %47, label %55
47: ; preds = %43
%48 = call i32 @Whole(i32 %5)
%49 = load i32, i32* %1
%50 = call i32 @Remain(i32 %49)
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %51
%53 = load i8*, i8** %52
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0), i8* %53)
br label %140
55: ; preds = %43
%56 = add nsw i32 %5, -41
%57 = icmp ult i32 %56, 9
br i1 %57, label %58, label %66
58: ; preds = %55
%59 = call i32 @Whole(i32 %5)
%60 = load i32, i32* %1
%61 = call i32 @Remain(i32 %60)
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %62
%64 = load i8*, i8** %63
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0), i8* %64)
br label %140
66: ; preds = %55
%67 = add nsw i32 %5, -51
%68 = icmp ult i32 %67, 9
br i1 %68, label %69, label %77
69: ; preds = %66
%70 = call i32 @Whole(i32 %5)
%71 = load i32, i32* %1
%72 = call i32 @Remain(i32 %71)
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %73
%75 = load i8*, i8** %74
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i8* %75)
br label %140
77: ; preds = %66
%78 = add nsw i32 %5, -61
%79 = icmp ult i32 %78, 9
br i1 %79, label %80, label %88
80: ; preds = %77
%81 = call i32 @Whole(i32 %5)
%82 = load i32, i32* %1
%83 = call i32 @Remain(i32 %82)
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %84
%86 = load i8*, i8** %85
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8* %86)
br label %140
88: ; preds = %77
%89 = add nsw i32 %5, -71
%90 = icmp ult i32 %89, 9
br i1 %90, label %91, label %99
91: ; preds = %88
%92 = call i32 @Whole(i32 %5)
%93 = load i32, i32* %1
%94 = call i32 @Remain(i32 %93)
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %95
%97 = load i8*, i8** %96
%98 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i64 0, i64 0), i8* %97)
br label %140
99: ; preds = %88
%100 = add nsw i32 %5, -81
%101 = icmp ult i32 %100, 9
br i1 %101, label %102, label %110
102: ; preds = %99
%103 = call i32 @Whole(i32 %5)
%104 = load i32, i32* %1
%105 = call i32 @Remain(i32 %104)
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %106
%108 = load i8*, i8** %107
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i64 0, i64 0), i8* %108)
br label %140
110: ; preds = %99
%111 = add nsw i32 %5, -91
%112 = icmp ult i32 %111, 9
br i1 %112, label %113, label %121
113: ; preds = %110
%114 = call i32 @Whole(i32 %5)
%115 = load i32, i32* %1
%116 = call i32 @Remain(i32 %115)
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %117
%119 = load i8*, i8** %118
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.33, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i8* %119)
br label %140
121: ; preds = %110
%122 = add nsw i32 %5, -101
%123 = icmp ult i32 %122, 899
br i1 %123, label %124, label %140
124: ; preds = %121
%125 = call i32 @Hundred(i32 %5)
%126 = load i32, i32* %1
%127 = call i32 @Unit_of(i32 %126)
%128 = call i32 @Remain(i32 %127)
%129 = load i32, i32* %1
%130 = call i32 @Unit_of(i32 %129)
%131 = icmp slt i32 %130, 21
br i1 %131, label %132, label %140
132: ; preds = %124
%133 = sext i32 %125 to i64
%134 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %133
%135 = load i8*, i8** %134
%136 = sext i32 %127 to i64
%137 = getelementptr inbounds [29 x i8*], [29 x i8*]* @__const.main.Num_Word, i64 0, i64 %136
%138 = load i8*, i8** %137
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.34, i64 0, i64 0), i8* %135, i8* %138)
br label %140
140: ; preds = %11, %19, %23, %27, %31, %47, %69, %91, %113, %124, %132, %121, %102, %80, %58, %35, %29, %25, %21, %17, %7
ret i32 0
}