#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;
  printf("\n  vavedi chislo:");
  scanf("%d", &a);
  if (a == 1) {
    printf("\n one");
  }
  if (a == 2) {
    printf("\n two");
  }
  if (a == 3) {
    printf("\n three");
  }
  if (a == 4) {
    printf("\n four");
  }
  if (a == 5) {
    printf("\n five");
  }
  if (a == 6) {
    printf("\n six");
  }
  if (a == 7) {
    printf("\n seven");
  }
  if (a == 8) {
    printf("\n eight");
  }
  if (a == 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    0xed0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1161 <main+0x41>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    1177 <main+0x57>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    118d <main+0x6d>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x4,-0x8(%rbp)
jne    11a3 <main+0x83>
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x5,-0x8(%rbp)
jne    11b9 <main+0x99>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x6,-0x8(%rbp)
jne    11cf <main+0xaf>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x7,-0x8(%rbp)
jne    11e5 <main+0xc5>
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x8,-0x8(%rbp)
jne    11fb <main+0xdb>
lea    0xe4f(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x9,-0x8(%rbp)
jne    1211 <main+0xf1>
lea    0xe41(%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
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x1,%eax
je     118f <main+0x6f>
cmp    $0x2,%eax
je     11a4 <main+0x84>
cmp    $0x3,%eax
je     11b9 <main+0x99>
cmp    $0x4,%eax
je     11ce <main+0xae>
cmp    $0x5,%eax
je     11e7 <main+0xc7>
cmp    $0x6,%eax
je     1200 <main+0xe0>
cmp    $0x7,%eax
je     1219 <main+0xf9>
cmp    $0x8,%eax
je     1232 <main+0x112>
cmp    $0x9,%eax
jne    118b <main+0x6b>
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x2,%eax
jne    114c <main+0x2c>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jne    1151 <main+0x31>
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x4,%eax
jne    1156 <main+0x36>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x5,%eax
jne    115f <main+0x3f>
lea    0xe42(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x6,%eax
jne    1168 <main+0x48>
lea    0xe30(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x7,%eax
jne    1171 <main+0x51>
lea    0xe1d(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x8,%eax
jne    117a <main+0x5a>
lea    0xe0c(%rip),%rdi
call   1030 <printf@plt>
mov    0x4(%rsp),%eax
cmp    $0x9,%eax
je     117f <main+0x5f>
jmp    118b <main+0x6b>

LLVM IR (-O0):
@.str = [18 x i8] c"\0A vavedi chislo:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"\0A one\00"
@.str.3 = [6 x i8] c"\0A two\00"
@.str.4 = [8 x i8] c"\0A three\00"
@.str.5 = [7 x i8] c"\0A four\00"
@.str.6 = [7 x i8] c"\0A five\00"
@.str.7 = [6 x i8] c"\0A six\00"
@.str.8 = [8 x i8] c"\0A seven\00"
@.str.9 = [8 x i8] c"\0A eight\00"
@.str.10 = [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 ([18 x i8], [18 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, 1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 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, 2
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, 3
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 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, 4
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 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, 5
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, 6
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 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, 7
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 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, 8
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, 9
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %49
49: ; preds = %47, %44
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"\0A vavedi chislo:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [6 x i8] c"\0A one\00"
@.str.3 = [6 x i8] c"\0A two\00"
@.str.4 = [8 x i8] c"\0A three\00"
@.str.5 = [7 x i8] c"\0A four\00"
@.str.6 = [7 x i8] c"\0A five\00"
@.str.7 = [6 x i8] c"\0A six\00"
@.str.8 = [8 x i8] c"\0A seven\00"
@.str.9 = [8 x i8] c"\0A eight\00"
@.str.10 = [7 x i8] c"\0A nine\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 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* %1)
%5 = load i32, i32* %1
%6 = icmp eq i32 %5, 1
br i1 %6, label %7, label %10
7: ; preds = %0
%8 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 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, 2
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, 3
br i1 %18, label %19, label %22
19: ; preds = %16
%20 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 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, 4
br i1 %24, label %25, label %28
25: ; preds = %22
%26 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 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, 5
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, 6
br i1 %36, label %37, label %40
37: ; preds = %34
%38 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 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, 7
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 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, 8
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, 9
br i1 %54, label %55, label %57
55: ; preds = %52
%56 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
br label %57
57: ; preds = %55, %52
ret i32 0
}