#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 *);
void yuzler(int a) {
  int yuz = a / 100;
  yuz %= 10;
  switch (yuz) {
  case 1:
    printf("yuz ");
    break;
  case 2:
    printf("iki yuz ");
    break;
  case 3:
    printf("uc yuz ");
    break;
  case 4:
    printf("dort yuz ");
    break;
  case 5:
    printf("bes yuz ");
    break;
  case 6:
    printf("alti yuz ");
    break;
  case 7:
    printf("yedi yuz ");
    break;
  case 8:
    printf("sekiz yuz ");
    break;
  case 9:
    printf("dokuz yuz ");
    break;
  }
}


x86 assembly (clang, -O0):
<yuzler>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movslq -0x4(%rbp),%rax
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
mov    %eax,-0x8(%rbp)
movslq -0x8(%rbp),%rcx
mov    %ecx,%eax
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rdx
add    %ecx,%edx
add    %edx,%edx
mov    %edx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x8,%eax
ja     1219 <yuzler+0x109>
mov    -0x10(%rbp),%rax
lea    0xe84(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe6f(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe59(%rip),%rdi
call   1030 <printf@plt>
jmp    1219 <yuzler+0x109>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<yuzler>:
movslq %edi,%rax
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
not    %ecx
add    %ecx,%eax
cmp    $0x8,%eax
ja     1160 <yuzler+0x50>
cltq
lea    0xefc(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
jmp    1030 <printf@plt>
ret

LLVM IR (-O0):
@.str = [5 x i8] c"yuz \00"
@.str.1 = [9 x i8] c"iki yuz \00"
@.str.2 = [8 x i8] c"uc yuz \00"
@.str.3 = [10 x i8] c"dort yuz \00"
@.str.4 = [9 x i8] c"bes yuz \00"
@.str.5 = [10 x i8] c"alti yuz \00"
@.str.6 = [10 x i8] c"yedi yuz \00"
@.str.7 = [11 x i8] c"sekiz yuz \00"
@.str.8 = [11 x i8] c"dokuz yuz \00"
define void @yuzler(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
%4 = load i32, i32* %2
%5 = sdiv i32 %4, 100
store i32 %5, i32* %3
%6 = load i32, i32* %3
%7 = srem i32 %6, 10
store i32 %7, i32* %3
%8 = load i32, i32* %3
switch i32 %8, label %27 [
i32 1, label %9
i32 2, label %11
i32 3, label %13
i32 4, label %15
i32 5, label %17
i32 6, label %19
i32 7, label %21
i32 8, label %23
i32 9, label %25
]
9: ; preds = %1
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %27
11: ; preds = %1
%12 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
br label %27
13: ; preds = %1
%14 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
br label %27
15: ; preds = %1
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
br label %27
17: ; preds = %1
%18 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %27
19: ; preds = %1
%20 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %27
21: ; preds = %1
%22 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
br label %27
23: ; preds = %1
%24 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
br label %27
25: ; preds = %1
%26 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
br label %27
27: ; preds = %1, %25, %23, %21, %19, %17, %15, %13, %11, %9
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"yuz \00"
@.str.1 = [9 x i8] c"iki yuz \00"
@.str.2 = [8 x i8] c"uc yuz \00"
@.str.3 = [10 x i8] c"dort yuz \00"
@.str.4 = [9 x i8] c"bes yuz \00"
@.str.5 = [10 x i8] c"alti yuz \00"
@.str.6 = [10 x i8] c"yedi yuz \00"
@.str.7 = [11 x i8] c"sekiz yuz \00"
@.str.8 = [11 x i8] c"dokuz yuz \00"
@reltable.yuzler = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.1 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.2 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.3 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.4 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.5 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([10 x i8]* @.str.6 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.8 to i64), i64 ptrtoint ([9 x i32]* @reltable.yuzler to i64)) to i32)]
define void @yuzler(i32 %0) {
%2 = sdiv i32 %0, 100
%3 = srem i32 %2, 10
%4 = add nsw i32 %3, -1
%5 = icmp ult i32 %4, 9
br i1 %5, label %6, label %11
6: ; preds = %1
%7 = sext i32 %4 to i64
%8 = shl i64 %7, 2
%9 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.yuzler to i8*), i64 %8)
%10 = tail call i32 @printf(i8* dereferenceable(1) %9)
br label %11
11: ; preds = %1, %6
ret void
}