#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 yil = 2013;
  printf("Takvimden cikmak icin -1 giriniz.\n");
  while (yil != -1) {
    printf("Takvimde gosterilmesi istediginiz yili giriniz(2013-..): ");
    scanf("%d", &yil);
    if (yil == -1) {
      printf("Programdan ciktiniz :)");
      break;
    }
    if (yil >= 2013) {
      int gun_adi_tutma = 0;
      int yil_farki;
      int for_sayici;
      yil_farki = yil - 2012;
      for (for_sayici = 1; for_sayici <= yil_farki; for_sayici++) {
        if ((for_sayici % 4) == 0) {
          gun_adi_tutma = gun_adi_tutma + 2;
        } else {
          gun_adi_tutma++;
        }
      }
      gun_adi_tutma = (gun_adi_tutma % 7);
      int ay;
      for (ay = 1; ay <= 12; ay++) {
        switch (ay) {
        case 1: {
          printf("%11s OCAK\n");
          break;
        }
        case 2: {
          printf("%11s SUBAT\n");
          break;
        }
        case 3: {
          printf("%11s MART\n");
          break;
        }
        case 4: {
          printf("%11s NISAN\n");
          break;
        }
        case 5: {
          printf("%11s MAYIS\n");
          break;
        }
        case 6: {
          printf("%11s HAZIRAN\n");
          break;
        }
        case 7: {
          printf("%11s TEMMUZ\n");
          break;
        }
        case 8: {
          printf("%11s AGUSTOS\n");
          break;
        }
        case 9: {
          printf("%11s EYLUL\n");
          break;
        }
        case 10: {
          printf("%11s EKIM\n");
          break;
        }
        case 11: {
          printf("%11s KASIM\n");
          break;
        }
        case 12: {
          printf("%11s ARALIK\n");
          break;
        }
        }
        printf("pzt sal crş prş cum cts paz\n");
        int bosluk_sayisi;
        for (bosluk_sayisi = 0; bosluk_sayisi < gun_adi_tutma;
             bosluk_sayisi++) {
          printf("    ");
        }
        int maksimum_gun_sayisi;
        if (ay == 1 || ay == 3 || ay == 5 || ay == 7 || ay == 8 || ay == 10 ||
            ay == 12) {
          maksimum_gun_sayisi = 31;
        } else if (ay == 4 || ay == 6 || ay == 9 || ay == 11) {
          maksimum_gun_sayisi = 30;
        } else if ((yil % 4 == 0) % (ay == 2)) {
          maksimum_gun_sayisi = 29;
        } else {
          maksimum_gun_sayisi = 28;
        }
        int gun_sayisi;
        for (gun_sayisi = 1; gun_sayisi <= maksimum_gun_sayisi; gun_sayisi++) {
          printf("%3d ", gun_sayisi);
          gun_adi_tutma++;
          if ((gun_adi_tutma % 7) == 0) {
            printf("\n");
          }
          gun_adi_tutma = gun_adi_tutma % 7;
        }
        printf("\n");
      }
    } else {
      printf("Yanlis yil girdiniz!!\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7dd,-0x8(%rbp)
lea    0xef3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
je     14ce <main+0x3ae>
lea    0xefe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf2a(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0xffffffff,-0x8(%rbp)
jne    1189 <main+0x69>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    14ce <main+0x3ae>
cmpl   $0x7dd,-0x8(%rbp)
jl     14bb <main+0x39b>
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%eax
sub    $0x7dc,%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     11f9 <main+0xd9>
mov    -0x14(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11dd <main+0xbd>
mov    -0xc(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0xc(%rbp)
jmp    11e6 <main+0xc6>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11eb <main+0xcb>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11af <main+0x8f>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
movl   $0x1,-0x18(%rbp)
cmpl   $0xc,-0x18(%rbp)
jg     14b6 <main+0x396>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0xb,%eax
ja     1320 <main+0x200>
mov    -0x30(%rbp),%rax
lea    0xdc8(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe3a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1320 <main+0x200>
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    135d <main+0x23d>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1335 <main+0x215>
cmpl   $0x1,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0x3,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0x5,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0x7,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0x8,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0xa,-0x18(%rbp)
je     13a3 <main+0x283>
cmpl   $0xc,-0x18(%rbp)
jne    13af <main+0x28f>
movl   $0x1f,-0x20(%rbp)
jmp    142f <main+0x30f>
cmpl   $0x4,-0x18(%rbp)
je     13d7 <main+0x2b7>
cmpl   $0x6,-0x18(%rbp)
je     13d7 <main+0x2b7>
cmpl   $0x9,-0x18(%rbp)
je     13d7 <main+0x2b7>
cmpl   $0xb,-0x18(%rbp)
jne    13e3 <main+0x2c3>
movl   $0x1e,-0x20(%rbp)
jmp    142a <main+0x30a>
mov    -0x8(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmpl   $0x2,-0x18(%rbp)
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     141e <main+0x2fe>
movl   $0x1d,-0x20(%rbp)
jmp    1425 <main+0x305>
movl   $0x1c,-0x20(%rbp)
jmp    142a <main+0x30a>
jmp    142f <main+0x30f>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x20(%rbp),%eax
jg     149a <main+0x37a>
mov    -0x24(%rbp),%esi
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    147e <main+0x35e>
lea    0xd01(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
mov    $0x7,%ecx
cltd
idiv   %ecx
mov    %edx,-0xc(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1436 <main+0x316>
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    120e <main+0xee>
jmp    14c9 <main+0x3a9>
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1144 <main+0x24>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movl   $0x7dd,0x4(%rsp)
lea    0xfd7(%rip),%rdi
call   1040 <puts@plt>
lea    0xfc1(%rip),%rbp
jmp    1187 <main+0x47>
nopl   0x0(%rax,%rax,1)
lea    0xfdc(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0xffffffff,0x4(%rsp)
je     1447 <main+0x307>
lea    0xeb2(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xede(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0xffffffff,%eax
je     1439 <main+0x2f9>
cmp    $0x7dd,%eax
jl     1170 <main+0x30>
lea    -0x7dc(%rax),%edx
cmp    $0x8,%edx
jae    11e0 <main+0xa0>
xor    %esi,%esi
mov    $0x1,%ecx
jmp    129e <main+0x15e>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %edx,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%edi
mov    %edi,%esi
shr    $0x3,%esi
add    $0x1,%esi
test   %edi,%edi
movdqa 0xe16(%rip),%xmm5
pxor   %xmm8,%xmm8
movdqa 0xe19(%rip),%xmm7
je     141a <main+0x2da>
mov    %esi,%edi
and    $0xfffffffe,%edi
pxor   %xmm0,%xmm0
movdqa 0xde2(%rip),%xmm2
pxor   %xmm1,%xmm1
movdqa 0xe06(%rip),%xmm6
nopw   0x0(%rax,%rax,1)
movdqa %xmm2,%xmm3
pand   %xmm5,%xmm3
pcmpeqd %xmm8,%xmm3
movdqa %xmm7,%xmm4
psubd  %xmm3,%xmm4
paddd  %xmm4,%xmm0
paddd  %xmm4,%xmm1
paddd  %xmm4,%xmm0
paddd  %xmm4,%xmm1
paddd  %xmm6,%xmm2
add    $0xfffffffe,%edi
jne    1230 <main+0xf0>
test   $0x1,%sil
je     127d <main+0x13d>
pand   %xmm5,%xmm2
pcmpeqd %xmm8,%xmm2
movdqa %xmm7,%xmm3
psubd  %xmm2,%xmm3
paddd  %xmm3,%xmm0
paddd  %xmm3,%xmm1
paddd  %xmm1,%xmm0
pshufd $0xee,%xmm0,%xmm1
paddd  %xmm0,%xmm1
pshufd $0x55,%xmm1,%xmm0
paddd  %xmm1,%xmm0
movd   %xmm0,%esi
cmp    %ecx,%edx
je     12c5 <main+0x185>
or     $0x1,%ecx
add    $0xfffff825,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ecx,%edx
and    $0x3,%edx
cmp    $0x1,%edx
adc    $0x0,%esi
add    $0x1,%esi
add    $0x1,%ecx
cmp    %ecx,%eax
jne    12b0 <main+0x170>
mov    %esi,%eax
imul   $0x24924925,%rax,%rax
shr    $0x20,%rax
mov    %esi,%r12d
sub    %eax,%r12d
shr    %r12d
add    %eax,%r12d
shr    $0x2,%r12d
lea    0x0(,%r12,8),%eax
sub    %eax,%r12d
add    %esi,%r12d
mov    $0x1,%r13d
jmp    1318 <main+0x1d8>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%r13d
cmp    $0xd,%r13d
je     117c <main+0x3c>
lea    -0x1(%r13),%eax
cmp    $0xb,%eax
ja     1338 <main+0x1f8>
cltq
lea    0xe5e(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe2a(%rip),%rdi
call   1040 <puts@plt>
test   %r12d,%r12d
jle    135f <main+0x21f>
mov    %r12d,%ebx
nopl   0x0(%rax)
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jne    1350 <main+0x210>
mov    %r13d,%eax
and    $0x7ffffffd,%eax
mov    %r13d,%ecx
and    $0x7ffffff9,%ecx
xor    %edx,%edx
cmp    $0x4,%eax
sete   %dl
cmp    $0x9,%eax
lea    0x1d(%rdx,%rdx,1),%r15d
mov    $0x1f,%edx
cmove  %edx,%r15d
cmp    $0xc,%r13d
mov    $0x20,%edx
cmove  %edx,%r15d
cmp    $0x1,%ecx
cmove  %edx,%r15d
cmp    $0x8,%eax
cmove  %edx,%r15d
mov    $0x1,%r14d
lea    0xd7b(%rip),%rbx
jmp    13cd <main+0x28d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%r14d
cmp    %r14d,%r15d
je     1300 <main+0x1c0>
mov    %rbx,%rdi
mov    %r14d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12d,%eax
add    $0x1,%eax
cltq
imul   $0xffffffff92492493,%rax,%rcx
shr    $0x20,%rcx
add    %r12d,%ecx
add    $0x1,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x2,%ecx
add    %edx,%ecx
lea    0x0(,%rcx,8),%edx
sub    %edx,%ecx
mov    %eax,%r12d
add    %ecx,%r12d
jne    13c0 <main+0x280>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    13c0 <main+0x280>
pxor   %xmm0,%xmm0
movdqa 0xbda(%rip),%xmm2
pxor   %xmm1,%xmm1
test   $0x1,%sil
jne    1264 <main+0x124>
jmp    127d <main+0x13d>
lea    0xc3d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Takvimden cikmak icin -1 giriniz.\0A\00"
@.str.1 = [58 x i8] c"Takvimde gosterilmesi istediginiz yili giriniz(2013-..): \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [23 x i8] c"Programdan ciktiniz :)\00"
@.str.4 = [11 x i8] c"%11s OCAK\0A\00"
@.str.5 = [12 x i8] c"%11s SUBAT\0A\00"
@.str.6 = [11 x i8] c"%11s MART\0A\00"
@.str.7 = [12 x i8] c"%11s NISAN\0A\00"
@.str.8 = [12 x i8] c"%11s MAYIS\0A\00"
@.str.9 = [14 x i8] c"%11s HAZIRAN\0A\00"
@.str.10 = [13 x i8] c"%11s TEMMUZ\0A\00"
@.str.11 = [14 x i8] c"%11s AGUSTOS\0A\00"
@.str.12 = [12 x i8] c"%11s EYLUL\0A\00"
@.str.13 = [11 x i8] c"%11s EKIM\0A\00"
@.str.14 = [12 x i8] c"%11s KASIM\0A\00"
@.str.15 = [13 x i8] c"%11s ARALIK\0A\00"
@.str.16 = [31 x i8] c"pzt sal cr\C5\9F pr\C5\9F cum cts paz\0A\00"
@.str.17 = [5 x i8] c" \00"
@.str.18 = [5 x i8] c"%3d \00"
@.str.19 = [2 x i8] c"\0A\00"
@.str.20 = [23 x i8] c"Yanlis yil girdiniz!!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 2013, i32* %2
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
br label %11
11: ; preds = %166, %0
%12 = load i32, i32* %2
%13 = icmp ne i32 %12, -1
br i1 %13, label %14, label %167
14: ; preds = %11
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %2
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %167
21: ; preds = %14
%22 = load i32, i32* %2
%23 = icmp sge i32 %22, 2013
br i1 %23, label %24, label %164
24: ; preds = %21
store i32 0, i32* %3
%25 = load i32, i32* %2
%26 = sub nsw i32 %25, 2012
store i32 %26, i32* %4
store i32 1, i32* %5
br label %27
27: ; preds = %42, %24
%28 = load i32, i32* %5
%29 = load i32, i32* %4
%30 = icmp sle i32 %28, %29
br i1 %30, label %31, label %45
31: ; preds = %27
%32 = load i32, i32* %5
%33 = srem i32 %32, 4
%34 = icmp eq i32 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 2
store i32 %37, i32* %3
br label %41
38: ; preds = %31
%39 = load i32, i32* %3
%40 = add nsw i32 %39, 1
store i32 %40, i32* %3
br label %41
41: ; preds = %38, %35
br label %42
42: ; preds = %41
%43 = load i32, i32* %5
%44 = add nsw i32 %43, 1
store i32 %44, i32* %5
br label %27
45: ; preds = %27
%46 = load i32, i32* %3
%47 = srem i32 %46, 7
store i32 %47, i32* %3
store i32 1, i32* %6
br label %48
48: ; preds = %160, %45
%49 = load i32, i32* %6
%50 = icmp sle i32 %49, 12
br i1 %50, label %51, label %163
51: ; preds = %48
%52 = load i32, i32* %6
switch i32 %52, label %77 [
i32 1, label %53
i32 2, label %55
i32 3, label %57
i32 4, label %59
i32 5, label %61
i32 6, label %63
i32 7, label %65
i32 8, label %67
i32 9, label %69
i32 10, label %71
i32 11, label %73
i32 12, label %75
]
53: ; preds = %51
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %77
55: ; preds = %51
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
br label %77
57: ; preds = %51
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %77
59: ; preds = %51
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0))
br label %77
61: ; preds = %51
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
br label %77
63: ; preds = %51
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.9, i64 0, i64 0))
br label %77
65: ; preds = %51
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %77
67: ; preds = %51
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
br label %77
69: ; preds = %51
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %77
71: ; preds = %51
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
br label %77
73: ; preds = %51
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.14, i64 0, i64 0))
br label %77
75: ; preds = %51
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
br label %77
77: ; preds = %51, %75, %73, %71, %69, %67, %65, %63, %61, %59, %57, %55, %53
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %7
br label %79
79: ; preds = %85, %77
%80 = load i32, i32* %7
%81 = load i32, i32* %3
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %88
83: ; preds = %79
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
br label %85
85: ; preds = %83
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 1
store i32 %87, i32* %7
br label %79
88: ; preds = %79
%89 = load i32, i32* %6
%90 = icmp eq i32 %89, 1
br i1 %90, label %109, label %91
91: ; preds = %88
%92 = load i32, i32* %6
%93 = icmp eq i32 %92, 3
br i1 %93, label %109, label %94
94: ; preds = %91
%95 = load i32, i32* %6
%96 = icmp eq i32 %95, 5
br i1 %96, label %109, label %97
97: ; preds = %94
%98 = load i32, i32* %6
%99 = icmp eq i32 %98, 7
br i1 %99, label %109, label %100
100: ; preds = %97
%101 = load i32, i32* %6
%102 = icmp eq i32 %101, 8
br i1 %102, label %109, label %103
103: ; preds = %100
%104 = load i32, i32* %6
%105 = icmp eq i32 %104, 10
br i1 %105, label %109, label %106
106: ; preds = %103
%107 = load i32, i32* %6
%108 = icmp eq i32 %107, 12
br i1 %108, label %109, label %110
109: ; preds = %106, %103, %100, %97, %94, %91, %88
store i32 31, i32* %8
br label %137
110: ; preds = %106
%111 = load i32, i32* %6
%112 = icmp eq i32 %111, 4
br i1 %112, label %122, label %113
113: ; preds = %110
%114 = load i32, i32* %6
%115 = icmp eq i32 %114, 6
br i1 %115, label %122, label %116
116: ; preds = %113
%117 = load i32, i32* %6
%118 = icmp eq i32 %117, 9
br i1 %118, label %122, label %119
119: ; preds = %116
%120 = load i32, i32* %6
%121 = icmp eq i32 %120, 11
br i1 %121, label %122, label %123
122: ; preds = %119, %116, %113, %110
store i32 30, i32* %8
br label %136
123: ; preds = %119
%124 = load i32, i32* %2
%125 = srem i32 %124, 4
%126 = icmp eq i32 %125, 0
%127 = zext i1 %126 to i32
%128 = load i32, i32* %6
%129 = icmp eq i32 %128, 2
%130 = zext i1 %129 to i32
%131 = srem i32 %127, %130
%132 = icmp ne i32 %131, 0
br i1 %132, label %133, label %134
133: ; preds = %123
store i32 29, i32* %8
br label %135
134: ; preds = %123
store i32 28, i32* %8
br label %135
135: ; preds = %134, %133
br label %136
136: ; preds = %135, %122
br label %137
137: ; preds = %136, %109
store i32 1, i32* %9
br label %138
138: ; preds = %155, %137
%139 = load i32, i32* %9
%140 = load i32, i32* %8
%141 = icmp sle i32 %139, %140
br i1 %141, label %142, label %158
142: ; preds = %138
%143 = load i32, i32* %9
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 %143)
%145 = load i32, i32* %3
%146 = add nsw i32 %145, 1
store i32 %146, i32* %3
%147 = load i32, i32* %3
%148 = srem i32 %147, 7
%149 = icmp eq i32 %148, 0
br i1 %149, label %150, label %152
150: ; preds = %142
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %152
152: ; preds = %150, %142
%153 = load i32, i32* %3
%154 = srem i32 %153, 7
store i32 %154, i32* %3
br label %155
155: ; preds = %152
%156 = load i32, i32* %9
%157 = add nsw i32 %156, 1
store i32 %157, i32* %9
br label %138
158: ; preds = %138
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %160
160: ; preds = %158
%161 = load i32, i32* %6
%162 = add nsw i32 %161, 1
store i32 %162, i32* %6
br label %48
163: ; preds = %48
br label %166
164: ; preds = %21
%165 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.20, i64 0, i64 0))
br label %166
166: ; preds = %164, %163
br label %11
167: ; preds = %19, %11
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [58 x i8] c"Takvimde gosterilmesi istediginiz yili giriniz(2013-..): \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [23 x i8] c"Programdan ciktiniz :)\00"
@.str.4 = [11 x i8] c"%11s OCAK\0A\00"
@.str.5 = [12 x i8] c"%11s SUBAT\0A\00"
@.str.6 = [11 x i8] c"%11s MART\0A\00"
@.str.7 = [12 x i8] c"%11s NISAN\0A\00"
@.str.8 = [12 x i8] c"%11s MAYIS\0A\00"
@.str.9 = [14 x i8] c"%11s HAZIRAN\0A\00"
@.str.10 = [13 x i8] c"%11s TEMMUZ\0A\00"
@.str.11 = [14 x i8] c"%11s AGUSTOS\0A\00"
@.str.12 = [12 x i8] c"%11s EYLUL\0A\00"
@.str.13 = [11 x i8] c"%11s EKIM\0A\00"
@.str.14 = [12 x i8] c"%11s KASIM\0A\00"
@.str.15 = [13 x i8] c"%11s ARALIK\0A\00"
@.str.17 = [5 x i8] c" \00"
@.str.18 = [5 x i8] c"%3d \00"
@str = [34 x i8] c"Takvimden cikmak icin -1 giriniz.\00"
@str.21 = [22 x i8] c"Yanlis yil girdiniz!!\00"
@str.22 = [30 x i8] c"pzt sal cr\C5\9F pr\C5\9F cum cts paz\00"
@reltable.main = [12 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.4 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.5 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.6 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.7 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.8 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.9 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.10 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.11 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.12 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @.str.13 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @.str.14 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([13 x i8]* @.str.15 to i64), i64 ptrtoint ([12 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 2013, i32* %1
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str, i64 0, i64 0))
br label %4
4: ; preds = %0, %137
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, -1
br i1 %8, label %9, label %11
9: ; preds = %4
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
br label %140
11: ; preds = %4
%12 = icmp sgt i32 %7, 2012
br i1 %12, label %13, label %135
13: ; preds = %11
%14 = add nsw i32 %7, -2011
%15 = add i32 %7, -2012
%16 = icmp ult i32 %15, 8
br i1 %16, label %73, label %17
17: ; preds = %13
%18 = and i32 %15, -8
%19 = or i32 %18, 1
%20 = add i32 %18, -8
%21 = lshr exact i32 %20, 3
%22 = add nuw nsw i32 %21, 1
%23 = and i32 %22, 1
%24 = icmp eq i32 %20, 0
br i1 %24, label %51, label %25
25: ; preds = %17
%26 = and i32 %22, 1073741822
br label %27
27: ; preds = %27, %25
%28 = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %25 ], [ %48, %27 ]
%29 = phi <4 x i32> [ zeroinitializer, %25 ], [ %46, %27 ]
%30 = phi <4 x i32> [ zeroinitializer, %25 ], [ %47, %27 ]
%31 = phi i32 [ 0, %25 ], [ %49, %27 ]
%32 = and <4 x i32> %28, <i32 3, i32 3, i32 3, i32 3>
%33 = and <4 x i32> %28, <i32 3, i32 3, i32 3, i32 3>
%34 = icmp eq <4 x i32> %32, zeroinitializer
%35 = icmp eq <4 x i32> %33, zeroinitializer
%36 = select <4 x i1> %34, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%37 = select <4 x i1> %35, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%38 = add <4 x i32> %36, %29
%39 = add <4 x i32> %37, %30
%40 = and <4 x i32> %28, <i32 3, i32 3, i32 3, i32 3>
%41 = and <4 x i32> %28, <i32 3, i32 3, i32 3, i32 3>
%42 = icmp eq <4 x i32> %40, zeroinitializer
%43 = icmp eq <4 x i32> %41, zeroinitializer
%44 = select <4 x i1> %42, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%45 = select <4 x i1> %43, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%46 = add <4 x i32> %44, %38
%47 = add <4 x i32> %45, %39
%48 = add <4 x i32> %28, <i32 16, i32 16, i32 16, i32 16>
%49 = add i32 %31, 2
%50 = icmp eq i32 %49, %26
br i1 %50, label %51, label %27
51: ; preds = %27, %17
%52 = phi <4 x i32> [ undef, %17 ], [ %46, %27 ]
%53 = phi <4 x i32> [ undef, %17 ], [ %47, %27 ]
%54 = phi <4 x i32> [ <i32 1, i32 2, i32 3, i32 4>, %17 ], [ %48, %27 ]
%55 = phi <4 x i32> [ zeroinitializer, %17 ], [ %46, %27 ]
%56 = phi <4 x i32> [ zeroinitializer, %17 ], [ %47, %27 ]
%57 = icmp eq i32 %23, 0
br i1 %57, label %67, label %58
58: ; preds = %51
%59 = and <4 x i32> %54, <i32 3, i32 3, i32 3, i32 3>
%60 = and <4 x i32> %54, <i32 3, i32 3, i32 3, i32 3>
%61 = icmp eq <4 x i32> %59, zeroinitializer
%62 = icmp eq <4 x i32> %60, zeroinitializer
%63 = select <4 x i1> %61, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%64 = select <4 x i1> %62, <4 x i32> <i32 2, i32 2, i32 2, i32 2>, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%65 = add <4 x i32> %63, %55
%66 = add <4 x i32> %64, %56
br label %67
67: ; preds = %51, %58
%68 = phi <4 x i32> [ %52, %51 ], [ %65, %58 ]
%69 = phi <4 x i32> [ %53, %51 ], [ %66, %58 ]
%70 = add <4 x i32> %69, %68
%71 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %70)
%72 = icmp eq i32 %15, %18
br i1 %72, label %85, label %73
73: ; preds = %13, %67
%74 = phi i32 [ 1, %13 ], [ %19, %67 ]
%75 = phi i32 [ 0, %13 ], [ %71, %67 ]
br label %76
76: ; preds = %73, %76
%77 = phi i32 [ %83, %76 ], [ %74, %73 ]
%78 = phi i32 [ %82, %76 ], [ %75, %73 ]
%79 = and i32 %77, 3
%80 = icmp eq i32 %79, 0
%81 = select i1 %80, i32 2, i32 1
%82 = add nuw nsw i32 %81, %78
%83 = add nuw i32 %77, 1
%84 = icmp eq i32 %83, %14
br i1 %84, label %85, label %76
85: ; preds = %76, %67
%86 = phi i32 [ %71, %67 ], [ %82, %76 ]
%87 = urem i32 %86, 7
br label %88
88: ; preds = %85, %131
%89 = phi i32 [ 1, %85 ], [ %133, %131 ]
%90 = phi i32 [ %87, %85 ], [ %124, %131 ]
%91 = add nsw i32 %89, -1
%92 = icmp ult i32 %91, 12
br i1 %92, label %93, label %98
93: ; preds = %88
%94 = sext i32 %91 to i64
%95 = shl i64 %94, 2
%96 = call i8* @llvm.load.relative.i64(i8* bitcast ([12 x i32]* @reltable.main to i8*), i64 %95)
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %96)
br label %98
98: ; preds = %88, %93
%99 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.22, i64 0, i64 0))
%100 = icmp sgt i32 %90, 0
br i1 %100, label %101, label %106
101: ; preds = %98, %101
%102 = phi i32 [ %104, %101 ], [ 0, %98 ]
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%104 = add nuw nsw i32 %102, 1
%105 = icmp eq i32 %104, %90
br i1 %105, label %106, label %101
106: ; preds = %101, %98
%107 = and i32 %89, 2147483645
%108 = and i32 %89, 2147483641
%109 = icmp eq i32 %108, 1
%110 = icmp eq i32 %107, 8
%111 = or i1 %110, %109
%112 = icmp eq i32 %89, 12
%113 = select i1 %111, i1 true, i1 %112
%114 = icmp eq i32 %107, 4
%115 = icmp eq i32 %107, 9
%116 = or i1 %115, %114
%117 = select i1 %116, i32 31, i32 29
%118 = select i1 %113, i32 32, i32 %117
br label %119
119: ; preds = %106, %128
%120 = phi i32 [ 1, %106 ], [ %129, %128 ]
%121 = phi i32 [ %90, %106 ], [ %124, %128 ]
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0), i32 %120)
%123 = add nsw i32 %121, 1
%124 = srem i32 %123, 7
%125 = icmp eq i32 %124, 0
br i1 %125, label %126, label %128
126: ; preds = %119
%127 = call i32 @putchar(i32 10)
br label %128
128: ; preds = %126, %119
%129 = add nuw nsw i32 %120, 1
%130 = icmp eq i32 %129, %118
br i1 %130, label %131, label %119
131: ; preds = %128
%132 = call i32 @putchar(i32 10)
%133 = add nuw nsw i32 %89, 1
%134 = icmp eq i32 %133, 13
br i1 %134, label %137, label %88
135: ; preds = %11
%136 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.21, i64 0, i64 0))
br label %137
137: ; preds = %131, %135
%138 = load i32, i32* %1
%139 = icmp eq i32 %138, -1
br i1 %139, label %140, label %4
140: ; preds = %137, %9
ret i32 0
}