#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*/ assertEquals(char *, int /*<<< orphan*/);
int /*<<< orphan*/ getNumberInWords(int);
void test2DigitNumbers() {
  assertEquals("ten", getNumberInWords(10));
  assertEquals("eleven", getNumberInWords(11));
  assertEquals("twelve", getNumberInWords(12));
  assertEquals("thirteen", getNumberInWords(13));
  assertEquals("fourteen", getNumberInWords(14));
  assertEquals("fifteen", getNumberInWords(15));
  assertEquals("sixteen", getNumberInWords(16));
  assertEquals("seventeen", getNumberInWords(17));
  assertEquals("eighteen", getNumberInWords(18));
  assertEquals("nineteen", getNumberInWords(19));
  assertEquals("twenty", getNumberInWords(20));
  assertEquals("thirty one", getNumberInWords(31));
  assertEquals("forty two", getNumberInWords(42));
  assertEquals("fifty three", getNumberInWords(53));
  assertEquals("sixty four", getNumberInWords(64));
  assertEquals("seventy five", getNumberInWords(75));
  assertEquals("eighty six", getNumberInWords(86));
  assertEquals("ninety seven", getNumberInWords(97));
  assertEquals("ninety eight", getNumberInWords(98));
  assertEquals("ninety nine", getNumberInWords(99));
}


x86 assembly (clang, -O0):
<test2DigitNumbers>:
push   %rbp
mov    %rsp,%rbp
mov    $0xa,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xec9(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0xb,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xeb5(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0xc,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xea4(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0xd,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe93(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0xe,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe84(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0xf,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe75(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x10,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe65(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x11,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe55(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x12,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe47(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x13,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe38(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x14,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe29(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x1f,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe18(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x2a,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xe0b(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x35,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdfd(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x40,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdf1(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x4b,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xde4(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x56,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdd9(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x61,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdcc(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x62,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdc1(%rip),%rdi
call   1030 <assertEquals@plt>
mov    $0x63,%edi
call   1040 <getNumberInWords@plt>
mov    %eax,%esi
lea    0xdb6(%rip),%rdi
call   1030 <assertEquals@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2DigitNumbers>:
push   %rax
mov    $0xa,%edi
call   1040 <getNumberInWords@plt>
lea    0xece(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0xb,%edi
call   1040 <getNumberInWords@plt>
lea    0xeba(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0xc,%edi
call   1040 <getNumberInWords@plt>
lea    0xea9(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0xd,%edi
call   1040 <getNumberInWords@plt>
lea    0xe98(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0xe,%edi
call   1040 <getNumberInWords@plt>
lea    0xe89(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0xf,%edi
call   1040 <getNumberInWords@plt>
lea    0xe7a(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x10,%edi
call   1040 <getNumberInWords@plt>
lea    0xe6a(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x11,%edi
call   1040 <getNumberInWords@plt>
lea    0xe5a(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x12,%edi
call   1040 <getNumberInWords@plt>
lea    0xe4c(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x13,%edi
call   1040 <getNumberInWords@plt>
lea    0xe3d(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x14,%edi
call   1040 <getNumberInWords@plt>
lea    0xe2e(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x1f,%edi
call   1040 <getNumberInWords@plt>
lea    0xe1d(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x2a,%edi
call   1040 <getNumberInWords@plt>
lea    0xe10(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x35,%edi
call   1040 <getNumberInWords@plt>
lea    0xe02(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x40,%edi
call   1040 <getNumberInWords@plt>
lea    0xdf6(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x4b,%edi
call   1040 <getNumberInWords@plt>
lea    0xde9(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x56,%edi
call   1040 <getNumberInWords@plt>
lea    0xdde(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x61,%edi
call   1040 <getNumberInWords@plt>
lea    0xdd1(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x62,%edi
call   1040 <getNumberInWords@plt>
lea    0xdc6(%rip),%rdi
mov    %eax,%esi
call   1030 <assertEquals@plt>
mov    $0x63,%edi
call   1040 <getNumberInWords@plt>
lea    0xdbb(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <assertEquals@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"ten\00"
@.str.1 = [7 x i8] c"eleven\00"
@.str.2 = [7 x i8] c"twelve\00"
@.str.3 = [9 x i8] c"thirteen\00"
@.str.4 = [9 x i8] c"fourteen\00"
@.str.5 = [8 x i8] c"fifteen\00"
@.str.6 = [8 x i8] c"sixteen\00"
@.str.7 = [10 x i8] c"seventeen\00"
@.str.8 = [9 x i8] c"eighteen\00"
@.str.9 = [9 x i8] c"nineteen\00"
@.str.10 = [7 x i8] c"twenty\00"
@.str.11 = [11 x i8] c"thirty one\00"
@.str.12 = [10 x i8] c"forty two\00"
@.str.13 = [12 x i8] c"fifty three\00"
@.str.14 = [11 x i8] c"sixty four\00"
@.str.15 = [13 x i8] c"seventy five\00"
@.str.16 = [11 x i8] c"eighty six\00"
@.str.17 = [13 x i8] c"ninety seven\00"
@.str.18 = [13 x i8] c"ninety eight\00"
@.str.19 = [12 x i8] c"ninety nine\00"
define void @test2DigitNumbers() {
%1 = call i32 @getNumberInWords(i32 10)
%2 = call i32 @assertEquals(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @getNumberInWords(i32 11)
%4 = call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 @getNumberInWords(i32 12)
%6 = call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 @getNumberInWords(i32 13)
%8 = call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 @getNumberInWords(i32 14)
%10 = call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 @getNumberInWords(i32 15)
%12 = call i32 @assertEquals(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 @getNumberInWords(i32 16)
%14 = call i32 @assertEquals(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = call i32 @getNumberInWords(i32 17)
%16 = call i32 @assertEquals(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = call i32 @getNumberInWords(i32 18)
%18 = call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = call i32 @getNumberInWords(i32 19)
%20 = call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = call i32 @getNumberInWords(i32 20)
%22 = call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = call i32 @getNumberInWords(i32 31)
%24 = call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = call i32 @getNumberInWords(i32 42)
%26 = call i32 @assertEquals(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = call i32 @getNumberInWords(i32 53)
%28 = call i32 @assertEquals(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = call i32 @getNumberInWords(i32 64)
%30 = call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = call i32 @getNumberInWords(i32 75)
%32 = call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = call i32 @getNumberInWords(i32 86)
%34 = call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %33)
%35 = call i32 @getNumberInWords(i32 97)
%36 = call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = call i32 @getNumberInWords(i32 98)
%38 = call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 %37)
%39 = call i32 @getNumberInWords(i32 99)
%40 = call i32 @assertEquals(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %39)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"ten\00"
@.str.1 = [7 x i8] c"eleven\00"
@.str.2 = [7 x i8] c"twelve\00"
@.str.3 = [9 x i8] c"thirteen\00"
@.str.4 = [9 x i8] c"fourteen\00"
@.str.5 = [8 x i8] c"fifteen\00"
@.str.6 = [8 x i8] c"sixteen\00"
@.str.7 = [10 x i8] c"seventeen\00"
@.str.8 = [9 x i8] c"eighteen\00"
@.str.9 = [9 x i8] c"nineteen\00"
@.str.10 = [7 x i8] c"twenty\00"
@.str.11 = [11 x i8] c"thirty one\00"
@.str.12 = [10 x i8] c"forty two\00"
@.str.13 = [12 x i8] c"fifty three\00"
@.str.14 = [11 x i8] c"sixty four\00"
@.str.15 = [13 x i8] c"seventy five\00"
@.str.16 = [11 x i8] c"eighty six\00"
@.str.17 = [13 x i8] c"ninety seven\00"
@.str.18 = [13 x i8] c"ninety eight\00"
@.str.19 = [12 x i8] c"ninety nine\00"
define void @test2DigitNumbers() {
%1 = tail call i32 @getNumberInWords(i32 10)
%2 = tail call i32 @assertEquals(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @getNumberInWords(i32 11)
%4 = tail call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @getNumberInWords(i32 12)
%6 = tail call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @getNumberInWords(i32 13)
%8 = tail call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 @getNumberInWords(i32 14)
%10 = tail call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = tail call i32 @getNumberInWords(i32 15)
%12 = tail call i32 @assertEquals(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 @getNumberInWords(i32 16)
%14 = tail call i32 @assertEquals(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = tail call i32 @getNumberInWords(i32 17)
%16 = tail call i32 @assertEquals(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = tail call i32 @getNumberInWords(i32 18)
%18 = tail call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = tail call i32 @getNumberInWords(i32 19)
%20 = tail call i32 @assertEquals(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = tail call i32 @getNumberInWords(i32 20)
%22 = tail call i32 @assertEquals(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = tail call i32 @getNumberInWords(i32 31)
%24 = tail call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = tail call i32 @getNumberInWords(i32 42)
%26 = tail call i32 @assertEquals(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = tail call i32 @getNumberInWords(i32 53)
%28 = tail call i32 @assertEquals(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = tail call i32 @getNumberInWords(i32 64)
%30 = tail call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = tail call i32 @getNumberInWords(i32 75)
%32 = tail call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %31)
%33 = tail call i32 @getNumberInWords(i32 86)
%34 = tail call i32 @assertEquals(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %33)
%35 = tail call i32 @getNumberInWords(i32 97)
%36 = tail call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %35)
%37 = tail call i32 @getNumberInWords(i32 98)
%38 = tail call i32 @assertEquals(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 %37)
%39 = tail call i32 @getNumberInWords(i32 99)
%40 = tail call i32 @assertEquals(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0), i32 %39)
ret void
}