#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 numb;
  do {
    scanf("%d", &numb);
  } while (-1 > numb || numb > 10);
  if (numb == 0)
    printf("zero");
  if (numb == 1)
    printf("one");
  if (numb == 2)
    printf("two");
  if (numb == 3)
    printf("three");
  if (numb == 4)
    printf("four");
  if (numb == 5)
    printf("five");
  if (numb == 6)
    printf("six");
  if (numb == 7)
    printf("seven");
  if (numb == 8)
    printf("eight");
  if (numb == 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>
mov    $0x1,%al
mov    $0xffffffff,%ecx
cmp    -0x8(%rbp),%ecx
mov    %al,-0x9(%rbp)
jg     115c <main+0x3c>
cmpl   $0xa,-0x8(%rbp)
setg   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
cmpl   $0x0,-0x8(%rbp)
jne    117d <main+0x5d>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1193 <main+0x73>
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    11a9 <main+0x89>
lea    0xe68(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    11bf <main+0x9f>
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11d5 <main+0xb5>
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11eb <main+0xcb>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    1201 <main+0xe1>
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    1217 <main+0xf7>
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    122d <main+0x10d>
lea    0xe02(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    1243 <main+0x123>
lea    0xdf2(%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
lea    -0xb(%rax),%ecx
cmp    $0xfffffff4,%ecx
jb     1130 <main+0x10>
test   %eax,%eax
je     11a6 <main+0x86>
cmp    $0x1,%eax
je     11bb <main+0x9b>
cmp    $0x2,%eax
je     11d0 <main+0xb0>
cmp    $0x3,%eax
je     11e9 <main+0xc9>
cmp    $0x4,%eax
je     1202 <main+0xe2>
cmp    $0x5,%eax
je     121b <main+0xfb>
cmp    $0x6,%eax
je     1234 <main+0x114>
cmp    $0x7,%eax
je     124d <main+0x12d>
cmp    $0x8,%eax
je     1266 <main+0x146>
cmp    $0x9,%eax
jne    119c <main+0x7c>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe56(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
jne    1150 <main+0x30>
lea    0xe46(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    1155 <main+0x35>
lea    0xe35(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    115e <main+0x3e>
lea    0xe20(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    1167 <main+0x47>
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    1170 <main+0x50>
lea    0xdf9(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    1179 <main+0x59>
lea    0xde5(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    1182 <main+0x62>
lea    0xdd0(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    118b <main+0x6b>
lea    0xdbd(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     1190 <main+0x70>
jmp    119c <main+0x7c>

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