#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 *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int a;
  scanf("%d", &a);
  if (a >= 0 && a <= 9) {
    if (a == 0) {
      printf("\nzero");
    }
    if (a == 1) {
      printf("\none");
    }
    if (a == 2) {
      printf("\ntwo");
    }
    if (a == 3) {
      printf("three");
    }
    if (a == 4) {
      printf("four");
    }
    if (a == 5) {
      printf("five");
    }
    if (a == 6) {
      printf("six");
    }
    if (a == 7) {
      printf("seven");
    }
    if (a == 8) {
      printf("eight");
    }
    if (a == 9) {
      printf("nine");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jl     1234 <main+0x114>
cmpl   $0x9,-0x8(%rbp)
jg     1234 <main+0x114>
cmpl   $0x0,-0x8(%rbp)
jne    1169 <main+0x49>
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    117f <main+0x5f>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    1195 <main+0x75>
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    11ab <main+0x8b>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11c1 <main+0xa1>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11d7 <main+0xb7>
lea    0xe4c(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    11ed <main+0xcd>
lea    0xe3b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    1203 <main+0xe3>
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    1219 <main+0xf9>
lea    0xe19(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    122f <main+0x10f>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
jmp    1234 <main+0x114>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
ja     1190 <main+0x70>
test   %eax,%eax
je     1194 <main+0x74>
cmp    $0x1,%eax
je     11a9 <main+0x89>
cmp    $0x2,%eax
je     11be <main+0x9e>
cmp    $0x3,%eax
je     11d7 <main+0xb7>
cmp    $0x4,%eax
je     11f0 <main+0xd0>
cmp    $0x5,%eax
je     1209 <main+0xe9>
cmp    $0x6,%eax
je     1222 <main+0x102>
cmp    $0x7,%eax
je     123b <main+0x11b>
cmp    $0x8,%eax
je     1254 <main+0x134>
cmp    $0x9,%eax
jne    1190 <main+0x70>
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
jne    1144 <main+0x24>
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    1149 <main+0x29>
lea    0xe49(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    1152 <main+0x32>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    115b <main+0x3b>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    1164 <main+0x44>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    116d <main+0x4d>
lea    0xdfa(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    1176 <main+0x56>
lea    0xde5(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    117f <main+0x5f>
lea    0xdd2(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     1184 <main+0x64>
jmp    1190 <main+0x70>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"\0Azero\00"
@.str.2 = [5 x i8] c"\0Aone\00"
@.str.3 = [5 x i8] c"\0Atwo\00"
@.str.4 = [6 x i8] c"three\00"
@.str.5 = [5 x i8] c"four\00"
@.str.6 = [5 x i8] c"five\00"
@.str.7 = [4 x i8] c"six\00"
@.str.8 = [6 x i8] c"seven\00"
@.str.9 = [6 x i8] c"eight\00"
@.str.10 = [5 x i8] c"nine\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = icmp sge i32 %4, 0
br i1 %5, label %6, label %60
6: ; preds = %0
%7 = load i32, i32* %2
%8 = icmp sle i32 %7, 9
br i1 %8, label %9, label %60
9: ; preds = %6
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %14
14: ; preds = %12, %9
%15 = load i32, i32* %2
%16 = icmp eq i32 %15, 1
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %19
19: ; preds = %17, %14
%20 = load i32, i32* %2
%21 = icmp eq i32 %20, 2
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %24
24: ; preds = %22, %19
%25 = load i32, i32* %2
%26 = icmp eq i32 %25, 3
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %29
29: ; preds = %27, %24
%30 = load i32, i32* %2
%31 = icmp eq i32 %30, 4
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %34
34: ; preds = %32, %29
%35 = load i32, i32* %2
%36 = icmp eq i32 %35, 5
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
br label %39
39: ; preds = %37, %34
%40 = load i32, i32* %2
%41 = icmp eq i32 %40, 6
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
br label %44
44: ; preds = %42, %39
%45 = load i32, i32* %2
%46 = icmp eq i32 %45, 7
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %49
49: ; preds = %47, %44
%50 = load i32, i32* %2
%51 = icmp eq i32 %50, 8
br i1 %51, label %52, label %54
52: ; preds = %49
%53 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
br label %54
54: ; preds = %52, %49
%55 = load i32, i32* %2
%56 = icmp eq i32 %55, 9
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %59
59: ; preds = %57, %54
br label %60
60: ; preds = %59, %6, %0
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [6 x i8] c"\0Azero\00"
@.str.2 = [5 x i8] c"\0Aone\00"
@.str.3 = [5 x i8] c"\0Atwo\00"
@.str.4 = [6 x i8] c"three\00"
@.str.5 = [5 x i8] c"four\00"
@.str.6 = [5 x i8] c"five\00"
@.str.7 = [4 x i8] c"six\00"
@.str.8 = [6 x i8] c"seven\00"
@.str.9 = [6 x i8] c"eight\00"
@.str.10 = [5 x i8] c"nine\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp ult i32 %4, 10
br i1 %5, label %6, label %64
6: ; preds = %0
%7 = icmp eq i32 %4, 0
br i1 %7, label %8, label %11
8: ; preds = %6
%9 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* %1
br label %11
11: ; preds = %8, %6
%12 = phi i32 [ %10, %8 ], [ %4, %6 ]
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%16 = load i32, i32* %1
br label %17
17: ; preds = %14, %11
%18 = phi i32 [ %16, %14 ], [ %12, %11 ]
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%22 = load i32, i32* %1
br label %23
23: ; preds = %20, %17
%24 = phi i32 [ %22, %20 ], [ %18, %17 ]
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %29
26: ; preds = %23
%27 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%28 = load i32, i32* %1
br label %29
29: ; preds = %26, %23
%30 = phi i32 [ %28, %26 ], [ %24, %23 ]
%31 = icmp eq i32 %30, 4
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%34 = load i32, i32* %1
br label %35
35: ; preds = %32, %29
%36 = phi i32 [ %34, %32 ], [ %30, %29 ]
%37 = icmp eq i32 %36, 5
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%40 = load i32, i32* %1
br label %41
41: ; preds = %38, %35
%42 = phi i32 [ %40, %38 ], [ %36, %35 ]
%43 = icmp eq i32 %42, 6
br i1 %43, label %44, label %47
44: ; preds = %41
%45 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%46 = load i32, i32* %1
br label %47
47: ; preds = %44, %41
%48 = phi i32 [ %46, %44 ], [ %42, %41 ]
%49 = icmp eq i32 %48, 7
br i1 %49, label %50, label %53
50: ; preds = %47
%51 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%52 = load i32, i32* %1
br label %53
53: ; preds = %50, %47
%54 = phi i32 [ %52, %50 ], [ %48, %47 ]
%55 = icmp eq i32 %54, 8
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%58 = load i32, i32* %1
br label %59
59: ; preds = %56, %53
%60 = phi i32 [ %58, %56 ], [ %54, %53 ]
%61 = icmp eq i32 %60, 9
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
br label %64
64: ; preds = %59, %62, %0
ret i32 0
}