#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 *, char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  char mappedNames[10][10] = {{"zero"},  {"one"},  {"two"}, {"three"},
                              {"four"},  {"five"}, {"six"}, {"seven"},
                              {"eight"}, {"nine"}};
  int number;
  scanf("%d", &number);
  printf("%s", mappedNames[number]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xeb3(%rip),%rsi
mov    $0x64,%edx
call   1040 <memcpy@plt>
lea    0xf06(%rip),%rdi
lea    -0x74(%rbp),%rsi
call   1050 <scanf@plt>
movslq -0x74(%rbp),%rax
lea    -0x70(%rbp),%rsi
imul   $0xa,%rax,%rax
add    %rax,%rsi
lea    0xeea(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x78,%rsp
mov    0xf36(%rip),%eax
mov    %eax,0x70(%rsp)
movaps 0xf1b(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xee3(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xec7(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeab(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xe8f(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xee7(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1040 <scanf@plt>
movslq 0xc(%rsp),%rax
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,2),%rsi
add    $0x10,%rsi
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x78,%rsp
ret

LLVM IR (-O0):
@__const.main.mappedNames = [10 x [10 x i8]] [[10 x i8] c"zero\00\00\00\00\00\00", [10 x i8] c"one\00\00\00\00\00\00\00", [10 x i8] c"two\00\00\00\00\00\00\00", [10 x i8] c"three\00\00\00\00\00", [10 x i8] c"four\00\00\00\00\00\00", [10 x i8] c"five\00\00\00\00\00\00", [10 x i8] c"six\00\00\00\00\00\00\00", [10 x i8] c"seven\00\00\00\00\00", [10 x i8] c"eight\00\00\00\00\00", [10 x i8] c"nine\00\00\00\00\00\00"]
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x [10 x i8]]
%3 = alloca i32
store i32 0, i32* %1
%4 = bitcast [10 x [10 x i8]]* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%6 = load i32, i32* %3
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %2, i64 0, i64 %7
%9 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %9)
ret i32 0
}

LLVM IR (-O2):
@__const.main.mappedNames = [10 x [10 x i8]] [[10 x i8] c"zero\00\00\00\00\00\00", [10 x i8] c"one\00\00\00\00\00\00\00", [10 x i8] c"two\00\00\00\00\00\00\00", [10 x i8] c"three\00\00\00\00\00", [10 x i8] c"four\00\00\00\00\00\00", [10 x i8] c"five\00\00\00\00\00\00", [10 x i8] c"six\00\00\00\00\00\00\00", [10 x i8] c"seven\00\00\00\00\00", [10 x i8] c"eight\00\00\00\00\00", [10 x i8] c"nine\00\00\00\00\00\00"]
@.str = [3 x i8] c"%d\00"
@.str.1 = [3 x i8] c"%s\00"
define i32 @main() {
%1 = alloca [10 x [10 x i8]]
%2 = alloca i32
%3 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %1, i64 0, i64 0, i64 0
%4 = bitcast i32* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = sext i32 %6 to i64
%8 = getelementptr inbounds [10 x [10 x i8]], [10 x [10 x i8]]* %1, i64 0, i64 %7, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %8)
ret i32 0
}