#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*/ system(char *);
int main() {
  printf("1800³âºÎÅÍ 2017³â±îÁö À±³â ¸®½ºÆ®\n");
  for (int i = 0; i < 218; i++) {
    int year = i + 1800;
    if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) {
      printf("%d\t", year);
      if (year == 1840 || year == 1880 || year == 1924 || year == 1964 ||
          year == 2004) {
        printf("\n");
      }
    }
  }
  system("pause>null");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xda,-0x8(%rbp)
jge    1210 <main+0xf0>
mov    -0x8(%rbp),%eax
add    $0x708,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    $0x4,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1184 <main+0x64>
mov    -0xc(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1198 <main+0x78>
mov    -0xc(%rbp),%eax
mov    $0x190,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11fd <main+0xdd>
mov    -0xc(%rbp),%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x730,-0xc(%rbp)
je     11ea <main+0xca>
cmpl   $0x758,-0xc(%rbp)
je     11ea <main+0xca>
cmpl   $0x784,-0xc(%rbp)
je     11ea <main+0xca>
cmpl   $0x7ac,-0xc(%rbp)
je     11ea <main+0xca>
cmpl   $0x7d4,-0xc(%rbp)
jne    11f8 <main+0xd8>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11fd <main+0xdd>
jmp    1202 <main+0xe2>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1144 <main+0x24>
lea    0xe26(%rip),%rdi
call   1030 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xec4(%rip),%rdi
call   1040 <puts@plt>
mov    $0x708,%bp
lea    0xea5(%rip),%r14
xor    %ebx,%ebx
jmp    117c <main+0x3c>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
add    $0x1,%ebp
cmp    $0xda,%ebx
je     1217 <main+0xd7>
movzwl %bp,%eax
mov    %eax,%ecx
shr    $0x2,%ecx
imul   $0x147b,%ecx,%ecx
shr    $0x11,%ecx
imul   $0x64,%ecx,%ecx
add    $0xfffff8f8,%ecx
test   $0x3,%bl
sete   %dl
cmp    %bx,%cx
setne  %cl
test   %cl,%dl
jne    11c2 <main+0x82>
shr    $0x4,%eax
imul   $0xa3e,%eax,%eax
shr    $0x10,%eax
imul   $0x190,%eax,%eax
add    $0xfffff8f8,%eax
cmp    %bx,%ax
jne    116a <main+0x2a>
lea    0x708(%rbx),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x7b,%ebx
jle    1200 <main+0xc0>
cmp    $0x7c,%ebx
je     1160 <main+0x20>
cmp    $0xcc,%ebx
je     1160 <main+0x20>
cmp    $0xa4,%ebx
je     1160 <main+0x20>
jmp    116a <main+0x2a>
nopl   0x0(%rax)
cmp    $0x28,%ebx
je     1160 <main+0x20>
cmp    $0x50,%ebx
je     1160 <main+0x20>
jmp    116a <main+0x2a>
lea    0xde6(%rip),%rdi
call   1050 <system@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [57 x i8] c"1800\C2\B3\C3\A2\C2\BA\C3\8E\C3\85\C3\8D 2017\C2\B3\C3\A2\C2\B1\C3\AE\C3\81\C3\B6 \C3\80\C2\B1\C2\B3\C3\A2 \C2\B8\C2\AE\C2\BD\C2\BA\C3\86\C2\AE\0A\00"
@.str.1 = [4 x i8] c"%d\09\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [11 x i8] c"pause>null\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %2
br label %5
5: ; preds = %43, %0
%6 = load i32, i32* %2
%7 = icmp slt i32 %6, 218
br i1 %7, label %8, label %46
8: ; preds = %5
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1800
store i32 %10, i32* %3
%11 = load i32, i32* %3
%12 = srem i32 %11, 4
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %8
%15 = load i32, i32* %3
%16 = srem i32 %15, 100
%17 = icmp ne i32 %16, 0
br i1 %17, label %22, label %18
18: ; preds = %14, %8
%19 = load i32, i32* %3
%20 = srem i32 %19, 400
%21 = icmp eq i32 %20, 0
br i1 %21, label %22, label %42
22: ; preds = %18, %14
%23 = load i32, i32* %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = load i32, i32* %3
%26 = icmp eq i32 %25, 1840
br i1 %26, label %39, label %27
27: ; preds = %22
%28 = load i32, i32* %3
%29 = icmp eq i32 %28, 1880
br i1 %29, label %39, label %30
30: ; preds = %27
%31 = load i32, i32* %3
%32 = icmp eq i32 %31, 1924
br i1 %32, label %39, label %33
33: ; preds = %30
%34 = load i32, i32* %3
%35 = icmp eq i32 %34, 1964
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i32, i32* %3
%38 = icmp eq i32 %37, 2004
br i1 %38, label %39, label %41
39: ; preds = %36, %33, %30, %27, %22
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
br label %42
42: ; preds = %41, %18
br label %43
43: ; preds = %42
%44 = load i32, i32* %2
%45 = add nsw i32 %44, 1
store i32 %45, i32* %2
br label %5
46: ; preds = %5
%47 = call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%48 = load i32, i32* %1
ret i32 %48
}

LLVM IR (-O2):
@.str.1 = [4 x i8] c"%d\09\00"
@.str.3 = [11 x i8] c"pause>null\00"
@str = [56 x i8] c"1800\C2\B3\C3\A2\C2\BA\C3\8E\C3\85\C3\8D 2017\C2\B3\C3\A2\C2\B1\C3\AE\C3\81\C3\B6 \C3\80\C2\B1\C2\B3\C3\A2 \C2\B8\C2\AE\C2\BD\C2\BA\C3\86\C2\AE\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str, i64 0, i64 0))
br label %4
2: ; preds = %20
%3 = tail call i32 @system(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
4: ; preds = %0, %20
%5 = phi i32 [ 0, %0 ], [ %21, %20 ]
%6 = add nuw nsw i32 %5, 1800
%7 = and i32 %5, 3
%8 = icmp eq i32 %7, 0
%9 = trunc i32 %6 to i16
%10 = urem i16 %9, 100
%11 = icmp ne i16 %10, 0
%12 = select i1 %8, i1 %11, i1 false
%13 = urem i16 %9, 400
%14 = icmp eq i16 %13, 0
%15 = select i1 %12, i1 true, i1 %14
br i1 %15, label %16, label %20
16: ; preds = %4
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %6)
switch i32 %5, label %20 [
i32 204, label %18
i32 164, label %18
i32 124, label %18
i32 80, label %18
i32 40, label %18
]
18: ; preds = %16, %16, %16, %16, %16
%19 = tail call i32 @putchar(i32 10)
br label %20
20: ; preds = %16, %4, %18
%21 = add nuw nsw i32 %5, 1
%22 = icmp eq i32 %21, 218
br i1 %22, label %2, label %4
}