#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 number;
  scanf("%d", &number);
  if (number > 9) {
    scanf("%d", &number);
  }
  if (number == 0) {
    printf("zero\n");
  }
  if (number == 1) {
    printf("one\n");
  }
  if (number == 2) {
    printf("two\n");
  }
  if (number == 3) {
    printf("three\n");
  }
  if (number == 4) {
    printf("four\n");
  }
  if (number == 5) {
    printf("five\n");
  }
  if (number == 6) {
    printf("six\n");
  }
  if (number == 7) {
    printf("seven\n");
  }
  if (number == 8) {
    printf("eight\n");
  }
  if (number == 9) {
    printf("nine\n");
  }
  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   $0x9,-0x8(%rbp)
jle    1159 <main+0x39>
lea    0xeb0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    116f <main+0x4f>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1185 <main+0x65>
lea    0xe89(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    119b <main+0x7b>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    11b1 <main+0x91>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11c7 <main+0xa7>
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11dd <main+0xbd>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    11f3 <main+0xd3>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    1209 <main+0xe9>
lea    0xe27(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    121f <main+0xff>
lea    0xe18(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    1235 <main+0x115>
lea    0xe09(%rip),%rdi
call   1030 <printf@plt>
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    $0xa,%eax
jge    119c <main+0x7c>
test   %eax,%eax
je     11b5 <main+0x95>
cmp    $0x1,%eax
je     11ce <main+0xae>
cmp    $0x2,%eax
je     11e7 <main+0xc7>
cmp    $0x3,%eax
je     1200 <main+0xe0>
cmp    $0x4,%eax
je     1219 <main+0xf9>
cmp    $0x5,%eax
je     1232 <main+0x112>
cmp    $0x6,%eax
je     124b <main+0x12b>
cmp    $0x7,%eax
je     1264 <main+0x144>
cmp    $0x8,%eax
je     127d <main+0x15d>
cmp    $0x9,%eax
jne    1198 <main+0x78>
lea    0xe70(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe5d(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jne    113f <main+0x1f>
lea    0xe74(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
jne    1148 <main+0x28>
lea    0xe57(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    1151 <main+0x31>
lea    0xe3a(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    115a <main+0x3a>
lea    0xe1b(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    1163 <main+0x43>
lea    0xdfd(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    116c <main+0x4c>
lea    0xddf(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    1175 <main+0x55>
lea    0xdc2(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    117e <main+0x5e>
lea    0xda3(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    1187 <main+0x67>
lea    0xd84(%rip),%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     118c <main+0x6c>
jmp    1198 <main+0x78>

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

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