#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 chislo;
  printf("\n");
  scanf("%d", &chislo);
  if (chislo == 0)
    printf("\n zero");
  if (chislo == 1)
    printf("\n one");
  if (chislo == 2)
    printf("\n two");
  if (chislo == 3)
    printf("\n three");
  if (chislo == 4)
    printf("\n four");
  if (chislo == 5)
    printf("\n five");
  if (chislo == 6)
    printf("\n six");
  if (chislo == 7)
    printf("\n seven");
  if (chislo == 8)
    printf("\n eight");
  if (chislo == 9)
    printf("\n nine");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1161 <main+0x41>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1177 <main+0x57>
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    118d <main+0x6d>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    11a3 <main+0x83>
lea    0xe7a(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11b9 <main+0x99>
lea    0xe6c(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11cf <main+0xaf>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    11e5 <main+0xc5>
lea    0xe4e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    11fb <main+0xdb>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    1211 <main+0xf1>
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    1227 <main+0x107>
lea    0xe22(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebe(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
je     11a9 <main+0x79>
cmp    $0x1,%eax
je     11be <main+0x8e>
cmp    $0x2,%eax
je     11d3 <main+0xa3>
cmp    $0x3,%eax
je     11ec <main+0xbc>
cmp    $0x4,%eax
je     1205 <main+0xd5>
cmp    $0x5,%eax
je     121e <main+0xee>
cmp    $0x6,%eax
je     1237 <main+0x107>
cmp    $0x7,%eax
je     1250 <main+0x120>
cmp    $0x8,%eax
je     1269 <main+0x139>
cmp    $0x9,%eax
jne    11a5 <main+0x75>
lea    0xea2(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe53(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
jne    1159 <main+0x29>
lea    0xe45(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    115e <main+0x2e>
lea    0xe36(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    1167 <main+0x37>
lea    0xe23(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    1170 <main+0x40>
lea    0xe12(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    1179 <main+0x49>
lea    0xe00(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    1182 <main+0x52>
lea    0xdee(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    118b <main+0x5b>
lea    0xddb(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    1194 <main+0x64>
lea    0xdca(%rip),%rdi
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     1199 <main+0x69>
jmp    11a5 <main+0x75>

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

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