#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 l;
  do {
    scanf("%d", &l);
  } while (l > 9 || l < 0);
  if (l == 0)
    printf("\nzero");
  if (l == 1)
    printf("\none");
  if (l == 2)
    printf("\ntwo");
  if (l == 3)
    printf("\nthree");
  if (l == 4)
    printf("\nfour");
  if (l == 5)
    printf("\nfive");
  if (l == 6)
    printf("\nsix");
  if (l == 7)
    printf("\nseven");
  if (l == 8)
    printf("\neight");
  if (l == 9)
    printf("\nnine");
  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>
mov    $0x1,%al
cmpl   $0x9,-0x8(%rbp)
mov    %al,-0x9(%rbp)
jg     1158 <main+0x38>
cmpl   $0x0,-0x8(%rbp)
setl   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
cmpl   $0x0,-0x8(%rbp)
jne    1179 <main+0x59>
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    118f <main+0x6f>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    11a5 <main+0x85>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    11bb <main+0x9b>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11d1 <main+0xb1>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11e7 <main+0xc7>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    11fd <main+0xdd>
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    1213 <main+0xf3>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    1229 <main+0x109>
lea    0xe0e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    123f <main+0x11f>
lea    0xdff(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed5(%rip),%r14
lea    0x4(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
ja     1130 <main+0x10>
test   %eax,%eax
je     11a3 <main+0x83>
cmp    $0x1,%eax
je     11b8 <main+0x98>
cmp    $0x2,%eax
je     11cd <main+0xad>
cmp    $0x3,%eax
je     11e6 <main+0xc6>
cmp    $0x4,%eax
je     11ff <main+0xdf>
cmp    $0x5,%eax
je     1218 <main+0xf8>
cmp    $0x6,%eax
je     1231 <main+0x111>
cmp    $0x7,%eax
je     124a <main+0x12a>
cmp    $0x8,%eax
je     1263 <main+0x143>
cmp    $0x9,%eax
jne    1199 <main+0x79>
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
jne    114d <main+0x2d>
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    1152 <main+0x32>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    115b <main+0x3b>
lea    0xe26(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    1164 <main+0x44>
lea    0xe14(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    116d <main+0x4d>
lea    0xe01(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    1176 <main+0x56>
lea    0xdee(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    117f <main+0x5f>
lea    0xdda(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    1188 <main+0x68>
lea    0xdc8(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     118d <main+0x6d>
jmp    1199 <main+0x79>

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 = [7 x i8] c"\0Athree\00"
@.str.5 = [6 x i8] c"\0Afour\00"
@.str.6 = [6 x i8] c"\0Afive\00"
@.str.7 = [5 x i8] c"\0Asix\00"
@.str.8 = [7 x i8] c"\0Aseven\00"
@.str.9 = [7 x i8] c"\0Aeight\00"
@.str.10 = [6 x i8] c"\0Anine\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %11, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
br label %5
5: ; preds = %3
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 9
br i1 %7, label %11, label %8
8: ; preds = %5
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 0
br label %11
11: ; preds = %8, %5
%12 = phi i1 [ true, %5 ], [ %10, %8 ]
br i1 %12, label %3, label %13
13: ; preds = %11
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %18
18: ; preds = %16, %13
%19 = load i32, i32* %2
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %23
23: ; preds = %21, %18
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 2
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
br label %28
28: ; preds = %26, %23
%29 = load i32, i32* %2
%30 = icmp eq i32 %29, 3
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %28
%34 = load i32, i32* %2
%35 = icmp eq i32 %34, 4
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
br label %38
38: ; preds = %36, %33
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, 5
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %43
43: ; preds = %41, %38
%44 = load i32, i32* %2
%45 = icmp eq i32 %44, 6
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %48
48: ; preds = %46, %43
%49 = load i32, i32* %2
%50 = icmp eq i32 %49, 7
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
br label %53
53: ; preds = %51, %48
%54 = load i32, i32* %2
%55 = icmp eq i32 %54, 8
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %58
58: ; preds = %56, %53
%59 = load i32, i32* %2
%60 = icmp eq i32 %59, 9
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %63
63: ; preds = %61, %58
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 = [7 x i8] c"\0Athree\00"
@.str.5 = [6 x i8] c"\0Afour\00"
@.str.6 = [6 x i8] c"\0Afive\00"
@.str.7 = [5 x i8] c"\0Asix\00"
@.str.8 = [7 x i8] c"\0Aseven\00"
@.str.9 = [7 x i8] c"\0Aeight\00"
@.str.10 = [6 x i8] c"\0Anine\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
br label %3
3: ; preds = %3, %0
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%5 = load i32, i32* %1
%6 = icmp ugt i32 %5, 9
br i1 %6, label %3, label %7
7: ; preds = %3
%8 = icmp eq i32 %5, 0
br i1 %8, label %9, label %12
9: ; preds = %7
%10 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %1
br label %12
12: ; preds = %9, %7
%13 = phi i32 [ %11, %9 ], [ %5, %7 ]
%14 = icmp eq i32 %13, 1
br i1 %14, label %15, label %18
15: ; preds = %12
%16 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* %1
br label %18
18: ; preds = %15, %12
%19 = phi i32 [ %17, %15 ], [ %13, %12 ]
%20 = icmp eq i32 %19, 2
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32, i32* %1
br label %24
24: ; preds = %21, %18
%25 = phi i32 [ %23, %21 ], [ %19, %18 ]
%26 = icmp eq i32 %25, 3
br i1 %26, label %27, label %30
27: ; preds = %24
%28 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%29 = load i32, i32* %1
br label %30
30: ; preds = %27, %24
%31 = phi i32 [ %29, %27 ], [ %25, %24 ]
%32 = icmp eq i32 %31, 4
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%35 = load i32, i32* %1
br label %36
36: ; preds = %33, %30
%37 = phi i32 [ %35, %33 ], [ %31, %30 ]
%38 = icmp eq i32 %37, 5
br i1 %38, label %39, label %42
39: ; preds = %36
%40 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%41 = load i32, i32* %1
br label %42
42: ; preds = %39, %36
%43 = phi i32 [ %41, %39 ], [ %37, %36 ]
%44 = icmp eq i32 %43, 6
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%47 = load i32, i32* %1
br label %48
48: ; preds = %45, %42
%49 = phi i32 [ %47, %45 ], [ %43, %42 ]
%50 = icmp eq i32 %49, 7
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%53 = load i32, i32* %1
br label %54
54: ; preds = %51, %48
%55 = phi i32 [ %53, %51 ], [ %49, %48 ]
%56 = icmp eq i32 %55, 8
br i1 %56, label %57, label %60
57: ; preds = %54
%58 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%59 = load i32, i32* %1
br label %60
60: ; preds = %57, %54
%61 = phi i32 [ %59, %57 ], [ %55, %54 ]
%62 = icmp eq i32 %61, 9
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
br label %65
65: ; preds = %63, %60
ret i32 0
}