int main() {
  int a[13] = {};
  while (*a < 10 || 0 * printf("짝수번째 합 : %d\n홀수번째 평균 : %.1lf", a[11],
                               a[12] / 5.0))
    scanf("%d", ++*a + a), a[11 + *a % 2] += a[*a];
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x34,%edx
call   1040 <memset@plt>
mov    $0x1,%al
cmpl   $0xa,-0x40(%rbp)
mov    %al,-0x41(%rbp)
jl     118c <main+0x5c>
mov    -0x14(%rbp),%esi
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xe92(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe8f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x41(%rbp)
mov    -0x41(%rbp),%al
test   $0x1,%al
jne    119c <main+0x6c>
jmp    11e6 <main+0xb6>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
lea    -0x40(%rbp),%rsi
cltq
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movslq -0x40(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
mov    -0x40(%rbp),%eax
mov    $0x2,%esi
cltd
idiv   %esi
add    $0xb,%edx
movslq %edx,%rax
add    -0x40(%rbp,%rax,4),%ecx
mov    %ecx,-0x40(%rbp,%rax,4)
jmp    114f <main+0x1f>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
movl   $0x0,0x30(%rsp)
lea    0xef5(%rip),%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
lea    0x1(%rax),%ecx
mov    %ecx,(%rsp)
cltq
lea    (%rsp,%rax,4),%rsi
add    $0x4,%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <scanf@plt>
movslq (%rsp),%rax
mov    (%rsp,%rax,4),%ecx
mov    %eax,%edx
shr    $0x1f,%edx
add    %eax,%edx
and    $0xfffffffe,%edx
neg    %edx
add    %edx,%eax
add    $0xb,%eax
add    %ecx,(%rsp,%rax,4)
mov    (%rsp),%eax
cmp    $0xa,%eax
jl     1150 <main+0x30>
mov    0x2c(%rsp),%esi
xorps  %xmm0,%xmm0
cvtsi2sdl 0x30(%rsp),%xmm0
divsd  0xe5e(%rip),%xmm0
lea    0xe5f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [50 x i8] c"\EC\A7\9D\EC\88\98\EB\B2\88\EC\A7\B8 \ED\95\A9 : %d\0A\ED\99\80\EC\88\98\EB\B2\88\EC\A7\B8 \ED\8F\89\EA\B7\A0 : %.1lf\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [13 x i32]
store i32 0, i32* %1
%3 = bitcast [13 x i32]* %2 to i8*
br label %4
4: ; preds = %20, %0
%5 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%6 = load i32, i32* %5
%7 = icmp slt i32 %6, 10
br i1 %7, label %18, label %8
8: ; preds = %4
%9 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 11
%10 = load i32, i32* %9
%11 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 12
%12 = load i32, i32* %11
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, 5.000000e+00
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %10, double %14)
%16 = mul nsw i32 0, %15
%17 = icmp ne i32 %16, 0
br label %18
18: ; preds = %8, %4
%19 = phi i1 [ true, %4 ], [ %17, %8 ]
br i1 %19, label %20, label %41
20: ; preds = %18
%21 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%22 = load i32, i32* %21
%23 = add nsw i32 %22, 1
store i32 %23, i32* %21
%24 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds i32, i32* %24, i64 %25
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %26)
%28 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%29 = load i32, i32* %28
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 0
%34 = load i32, i32* %33
%35 = srem i32 %34, 2
%36 = add nsw i32 11, %35
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [13 x i32], [13 x i32]* %2, i64 0, i64 %37
%39 = load i32, i32* %38
%40 = add nsw i32 %39, %32
store i32 %40, i32* %38
br label %4
41: ; preds = %18
%42 = load i32, i32* %1
ret i32 %42
}

LLVM IR (-O2):
@.str = [50 x i8] c"\EC\A7\9D\EC\88\98\EB\B2\88\EC\A7\B8 \ED\95\A9 : %d\0A\ED\99\80\EC\88\98\EB\B2\88\EC\A7\B8 \ED\8F\89\EA\B7\A0 : %.1lf\00"
@.str.1 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca [13 x i32]
%2 = bitcast [13 x i32]* %1 to i8*
%3 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 0
br label %12
4: ; preds = %12
%5 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 11
%6 = load i32, i32* %5
%7 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 12
%8 = load i32, i32* %7
%9 = sitofp i32 %8 to double
%10 = fdiv double %9, 5.000000e+00
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i32 %6, double %10)
ret i32 0
12: ; preds = %0, %12
%13 = phi i32 [ %28, %12 ], [ 0, %0 ]
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 %15
%17 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = load i32, i32* %3
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 %19
%21 = load i32, i32* %20
%22 = srem i32 %18, 2
%23 = add nsw i32 %22, 11
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds [13 x i32], [13 x i32]* %1, i64 0, i64 %24
%26 = load i32, i32* %25
%27 = add nsw i32 %26, %21
store i32 %27, i32* %25
%28 = load i32, i32* %3
%29 = icmp slt i32 %28, 10
br i1 %29, label %12, label %4
}