int main(void) {
  int sayi;
  do {
    printf("Sayiyi giriniz==>");
    scanf("%d", &sayi);
    if (sayi > 999 || sayi < 0)
      printf("girdiginiz sayi uygun deðildir.\n "
             "0 ile 999 arasinda olmalidir.\n");
    else
      break;
  } while (1);
  printf("%d sayýsý", ",sayi");
  switch (sayi / 100) {
  case 1:
    printf("yuz");
    break;
  case 2:
    printf("ikiyuz");
    break;
  case 3:
    printf("ucyuz");
    break;
  case 4:
    printf("dortyuz");
    break;
  case 5:
    printf("besyuz");
    break;
  case 6:
    printf("altiyuz");
    break;
  case 7:
    printf("yediyuz");
    break;
  case 8:
    printf("sekizyuz");
    break;
  case 9:
    printf("dokuzyuz");
    break;
  }
  switch ((sayi % 100) / 10) {
  case 1:
    printf("on");
    break;
  case 2:
    printf("yirmi");
    break;
  case 3:
    printf("otuz");
    break;
  case 4:
    printf("kirk");
    break;
  case 5:
    printf("elli");
    break;
  case 6:
    printf("altmis");
    break;
  case 7:
    printf("yetmis");
    break;
  case 8:
    printf("seksen");
    break;
  case 9:
    printf("doksan");
    break;
  }
  switch ((sayi % 10)) {
  case 1:
    printf("bir");
    break;
  case 2:
    printf("iki");
    break;
  case 3:
    printf("uc");
    break;
  case 4:
    printf("dort");
    break;
  case 5:
    printf("bes");
    break;
  case 6:
    printf("alti");
    break;
  case 7:
    printf("yedi");
    break;
  case 8:
    printf("sekiz");
    break;
  case 9:
    printf("dokuz");
    break;
  }
  if (sayi == 0)
    printf("sifir");
  printf("sifir seklinde okunur.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xf36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3e7,-0x8(%rbp)
jg     1166 <main+0x46>
cmpl   $0x0,-0x8(%rbp)
jge    1179 <main+0x59>
lea    0xf14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117e <main+0x5e>
jmp    1192 <main+0x72>
jmp    1183 <main+0x63>
mov    $0x1,%al
test   $0x1,%al
jne    112f <main+0xf>
jmp    1192 <main+0x72>
lea    0xf29(%rip),%rdi
lea    0xf2e(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
sar    $0x25,%rcx
mov    %ecx,%edx
shr    $0x3f,%rax
mov    %eax,%ecx
mov    %edx,%eax
lea    -0x1(%rax,%rcx,1),%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x8,%eax
ja     1290 <main+0x170>
mov    -0x10(%rbp),%rax
lea    0xe1f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1290 <main+0x170>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rcx
mov    %ecx,%eax
imul   $0x51eb851f,%rcx,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
sar    $0x22,%rcx
mov    %ecx,%edx
shr    $0x3f,%rax
mov    %eax,%ecx
mov    %edx,%eax
lea    -0x1(%rax,%rcx,1),%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x8,%eax
ja     1396 <main+0x276>
mov    -0x18(%rbp),%rax
lea    0xd3d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdf0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdc8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1396 <main+0x276>
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
mov    %eax,%ecx
imul   $0x66666667,%rax,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x22,%rdx
add    %eax,%edx
add    %edx,%edx
mov    %edx,%eax
lea    (%rax,%rax,4),%eax
not    %eax
add    %ecx,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x8,%eax
ja     1484 <main+0x364>
mov    -0x20(%rbp),%rax
lea    0xc73(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd43(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xcfa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1484 <main+0x364>
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jne    149c <main+0x37c>
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x3e8,0x4(%rsp)
jb     11a9 <main+0x79>
lea    0xf76(%rip),%r14
lea    0xe8f(%rip),%r15
lea    0xe9a(%rip),%r12
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <scanf@plt>
cmpl   $0x3e7,0x4(%rsp)
ja     1180 <main+0x50>
lea    0xe65(%rip),%rdi
lea    0xe6a(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x51eb851f,%rax,%rax
mov    %rax,%rcx
sar    $0x25,%rcx
shr    $0x3f,%rax
add    %ecx,%eax
add    $0xffffffff,%eax
cmp    $0x8,%eax
ja     11f6 <main+0xc6>
cltq
lea    0xf38(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movslq 0x4(%rsp),%rax
imul   $0x51eb851f,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x25,%rcx
add    %edx,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
movsbl %al,%eax
imul   $0x67,%eax,%eax
movzwl %ax,%ecx
movswl %cx,%eax
shr    $0xf,%ecx
shr    $0xa,%eax
add    %cl,%al
add    $0xff,%al
cmp    $0x8,%al
ja     1247 <main+0x117>
movsbq %al,%rax
lea    0xf0b(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movslq 0x4(%rsp),%rax
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    %eax,%ecx
cmp    $0x8,%ecx
ja     128a <main+0x15a>
movslq %ecx,%rax
lea    0xef0(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jne    129c <main+0x16c>
lea    0xe2e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe26(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [18 x i8] c"Sayiyi giriniz==>\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [65 x i8] c"girdiginiz sayi uygun de\C3\B0ildir.\0A 0 ile 999 arasinda olmalidir.\0A\00"
@.str.3 = [12 x i8] c"%d say\C3\BDs\C3\BD\00"
@.str.4 = [6 x i8] c",sayi\00"
@.str.5 = [4 x i8] c"yuz\00"
@.str.6 = [7 x i8] c"ikiyuz\00"
@.str.7 = [6 x i8] c"ucyuz\00"
@.str.8 = [8 x i8] c"dortyuz\00"
@.str.9 = [7 x i8] c"besyuz\00"
@.str.10 = [8 x i8] c"altiyuz\00"
@.str.11 = [8 x i8] c"yediyuz\00"
@.str.12 = [9 x i8] c"sekizyuz\00"
@.str.13 = [9 x i8] c"dokuzyuz\00"
@.str.14 = [3 x i8] c"on\00"
@.str.15 = [6 x i8] c"yirmi\00"
@.str.16 = [5 x i8] c"otuz\00"
@.str.17 = [5 x i8] c"kirk\00"
@.str.18 = [5 x i8] c"elli\00"
@.str.19 = [7 x i8] c"altmis\00"
@.str.20 = [7 x i8] c"yetmis\00"
@.str.21 = [7 x i8] c"seksen\00"
@.str.22 = [7 x i8] c"doksan\00"
@.str.23 = [4 x i8] c"bir\00"
@.str.24 = [4 x i8] c"iki\00"
@.str.25 = [3 x i8] c"uc\00"
@.str.26 = [5 x i8] c"dort\00"
@.str.27 = [4 x i8] c"bes\00"
@.str.28 = [5 x i8] c"alti\00"
@.str.29 = [5 x i8] c"yedi\00"
@.str.30 = [6 x i8] c"sekiz\00"
@.str.31 = [6 x i8] c"dokuz\00"
@.str.32 = [6 x i8] c"sifir\00"
@.str.33 = [24 x i8] c"sifir seklinde okunur.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
br label %3
3: ; preds = %15, %0
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%6 = load i32, i32* %2
%7 = icmp sgt i32 %6, 999
br i1 %7, label %11, label %8
8: ; preds = %3
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %8, %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
br label %14
13: ; preds = %8
br label %16
14: ; preds = %11
br label %15
15: ; preds = %14
br i1 true, label %3, label %16
16: ; preds = %15, %13
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* %2
%19 = sdiv i32 %18, 100
switch i32 %19, label %38 [
i32 1, label %20
i32 2, label %22
i32 3, label %24
i32 4, label %26
i32 5, label %28
i32 6, label %30
i32 7, label %32
i32 8, label %34
i32 9, label %36
]
20: ; preds = %16
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
br label %38
22: ; preds = %16
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %38
24: ; preds = %16
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %38
26: ; preds = %16
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0))
br label %38
28: ; preds = %16
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
br label %38
30: ; preds = %16
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
br label %38
32: ; preds = %16
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
br label %38
34: ; preds = %16
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
br label %38
36: ; preds = %16
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i64 0, i64 0))
br label %38
38: ; preds = %16, %36, %34, %32, %30, %28, %26, %24, %22, %20
%39 = load i32, i32* %2
%40 = srem i32 %39, 100
%41 = sdiv i32 %40, 10
switch i32 %41, label %60 [
i32 1, label %42
i32 2, label %44
i32 3, label %46
i32 4, label %48
i32 5, label %50
i32 6, label %52
i32 7, label %54
i32 8, label %56
i32 9, label %58
]
42: ; preds = %38
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %60
44: ; preds = %38
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %60
46: ; preds = %38
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
br label %60
48: ; preds = %38
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
br label %60
50: ; preds = %38
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
br label %60
52: ; preds = %38
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
br label %60
54: ; preds = %38
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
br label %60
56: ; preds = %38
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
br label %60
58: ; preds = %38
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
br label %60
60: ; preds = %38, %58, %56, %54, %52, %50, %48, %46, %44, %42
%61 = load i32, i32* %2
%62 = srem i32 %61, 10
switch i32 %62, label %81 [
i32 1, label %63
i32 2, label %65
i32 3, label %67
i32 4, label %69
i32 5, label %71
i32 6, label %73
i32 7, label %75
i32 8, label %77
i32 9, label %79
]
63: ; preds = %60
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i64 0, i64 0))
br label %81
65: ; preds = %60
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
br label %81
67: ; preds = %60
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0))
br label %81
69: ; preds = %60
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.26, i64 0, i64 0))
br label %81
71: ; preds = %60
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.27, i64 0, i64 0))
br label %81
73: ; preds = %60
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.28, i64 0, i64 0))
br label %81
75: ; preds = %60
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
br label %81
77: ; preds = %60
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
br label %81
79: ; preds = %60
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.31, i64 0, i64 0))
br label %81
81: ; preds = %60, %79, %77, %75, %73, %71, %69, %67, %65, %63
%82 = load i32, i32* %2
%83 = icmp eq i32 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %81
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0))
br label %86
86: ; preds = %84, %81
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.33, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"Sayiyi giriniz==>\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.3 = [12 x i8] c"%d say\C3\BDs\C3\BD\00"
@.str.4 = [6 x i8] c",sayi\00"
@.str.5 = [4 x i8] c"yuz\00"
@.str.6 = [7 x i8] c"ikiyuz\00"
@.str.7 = [6 x i8] c"ucyuz\00"
@.str.8 = [8 x i8] c"dortyuz\00"
@.str.9 = [7 x i8] c"besyuz\00"
@.str.10 = [8 x i8] c"altiyuz\00"
@.str.11 = [8 x i8] c"yediyuz\00"
@.str.12 = [9 x i8] c"sekizyuz\00"
@.str.13 = [9 x i8] c"dokuzyuz\00"
@.str.14 = [3 x i8] c"on\00"
@.str.15 = [6 x i8] c"yirmi\00"
@.str.16 = [5 x i8] c"otuz\00"
@.str.17 = [5 x i8] c"kirk\00"
@.str.18 = [5 x i8] c"elli\00"
@.str.19 = [7 x i8] c"altmis\00"
@.str.20 = [7 x i8] c"yetmis\00"
@.str.21 = [7 x i8] c"seksen\00"
@.str.22 = [7 x i8] c"doksan\00"
@.str.23 = [4 x i8] c"bir\00"
@.str.24 = [4 x i8] c"iki\00"
@.str.25 = [3 x i8] c"uc\00"
@.str.26 = [5 x i8] c"dort\00"
@.str.27 = [4 x i8] c"bes\00"
@.str.28 = [5 x i8] c"alti\00"
@.str.29 = [5 x i8] c"yedi\00"
@.str.30 = [6 x i8] c"sekiz\00"
@.str.31 = [6 x i8] c"dokuz\00"
@.str.32 = [6 x i8] c"sifir\00"
@str = [23 x i8] c"sifir seklinde okunur.\00"
@str.34 = [64 x i8] c"girdiginiz sayi uygun de\C3\B0ildir.\0A 0 ile 999 arasinda olmalidir.\00"
@reltable.main = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.5 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.6 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.7 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.8 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.9 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.10 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.11 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.12 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([9 x i8]* @.str.13 to i64), i64 ptrtoint ([9 x i32]* @reltable.main to i64)) to i32)]
@reltable.main.37 = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.14 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.15 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.16 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.17 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.18 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.19 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.20 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.21 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.22 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.37 to i64)) to i32)]
@reltable.main.38 = [9 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.23 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.24 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([3 x i8]* @.str.25 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.26 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.27 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.28 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.29 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.30 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.31 to i64), i64 ptrtoint ([9 x i32]* @reltable.main.38 to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%4 = call i32 (i8*, ...) @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 ugt i32 %5, 999
br i1 %6, label %7, label %13
7: ; preds = %0, %7
%8 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.34, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0))
%10 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%11 = load i32, i32* %1
%12 = icmp ugt i32 %11, 999
br i1 %12, label %7, label %13
13: ; preds = %7, %0
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32, i32* %1
%16 = sdiv i32 %15, 100
%17 = add nsw i32 %16, -1
%18 = icmp ult i32 %17, 9
br i1 %18, label %19, label %24
19: ; preds = %13
%20 = sext i32 %17 to i64
%21 = shl i64 %20, 2
%22 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main to i8*), i64 %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %22)
br label %24
24: ; preds = %13, %19
%25 = load i32, i32* %1
%26 = srem i32 %25, 100
%27 = trunc i32 %26 to i8
%28 = sdiv i8 %27, 10
%29 = add nsw i8 %28, -1
%30 = icmp ult i8 %29, 9
br i1 %30, label %31, label %36
31: ; preds = %24
%32 = sext i8 %29 to i64
%33 = shl i64 %32, 2
%34 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main.37 to i8*), i64 %33)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %34)
br label %36
36: ; preds = %24, %31
%37 = load i32, i32* %1
%38 = srem i32 %37, 10
%39 = add nsw i32 %38, -1
%40 = icmp ult i32 %39, 9
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = sext i32 %39 to i64
%43 = shl i64 %42, 2
%44 = call i8* @llvm.load.relative.i64(i8* bitcast ([9 x i32]* @reltable.main.38 to i8*), i64 %43)
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %44)
%46 = load i32, i32* %1
br label %47
47: ; preds = %36, %41
%48 = phi i32 [ %46, %41 ], [ %37, %36 ]
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %47
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.32, i64 0, i64 0))
br label %52
52: ; preds = %50, %47
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}