int main() {
  int v, w, x, y, z;
  for (z = y = 0; y < 5 || 0 * printf("합격자 %d명\n", z); y++)
    for (v = x = 0; x < 4 || 0 * printf("%s합격\n", v < 320 ? "불" : (z++, ""));
         x++)
      scanf("%d", &w), v += w;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    $0x1,%al
cmpl   $0x5,-0x14(%rbp)
mov    %al,-0x19(%rbp)
jl     1169 <main+0x49>
mov    -0x18(%rbp),%esi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x19(%rbp)
mov    -0x19(%rbp),%al
test   $0x1,%al
jne    1179 <main+0x59>
jmp    1231 <main+0x111>
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
mov    $0x1,%al
cmpl   $0x4,-0x10(%rbp)
mov    %al,-0x1a(%rbp)
jl     11e5 <main+0xc5>
cmpl   $0x140,-0x8(%rbp)
jge    11b3 <main+0x93>
lea    0xe71(%rip),%rax
mov    %rax,-0x28(%rbp)
jmp    11c7 <main+0xa7>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
lea    0xe4d(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
lea    0xe3f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x1a(%rbp)
mov    -0x1a(%rbp),%al
test   $0x1,%al
jne    11f5 <main+0xd5>
jmp    121e <main+0xfe>
lea    0xe23(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    -0xc(%rbp),%eax
add    -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1187 <main+0x67>
jmp    1223 <main+0x103>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    113d <main+0x1d>
mov    -0x4(%rbp),%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
lea    0xeed(%rip),%r14
lea    0x4(%rsp),%r12
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
xor    %ebp,%ebp
cmp    $0x140,%ebx
setge  %bpl
lea    0xe8d(%rip),%rax
lea    0xe7b(%rip),%r15
mov    %r15,%rsi
cmovl  %rax,%rsi
lea    0xe6e(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
xor    %r13d,%r13d
cmp    $0x140,%ebx
setge  %r13b
mov    %r15,%rsi
lea    0xe16(%rip),%rax
cmovl  %rax,%rsi
add    %ebp,%r13d
lea    0xdfe(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
xor    %ebp,%ebp
cmp    $0x140,%ebx
setge  %bpl
mov    %r15,%rsi
lea    0xda7(%rip),%rax
cmovl  %rax,%rsi
add    %r13d,%ebp
lea    0xd8f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebx
xor    %r13d,%r13d
cmp    $0x140,%ebx
setge  %r13b
mov    %r15,%rsi
lea    0xd37(%rip),%rax
cmovl  %rax,%rsi
add    %ebp,%r13d
lea    0xd1f(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x4(%rsp),%ebp
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebp
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebp
mov    %r14,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
add    0x4(%rsp),%ebp
xor    %ebx,%ebx
cmp    $0x140,%ebp
setge  %bl
lea    0xccc(%rip),%rax
cmovl  %rax,%r15
add    %r13d,%ebx
lea    0xcb4(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xc92(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <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 = [17 x i8] c"\ED\95\A9\EA\B2\A9\EC\9E\90 %d\EB\AA\85\0A\00"
@.str.1 = [10 x i8] c"%s\ED\95\A9\EA\B2\A9\0A\00"
@.str.2 = [4 x i8] c"\EB\B6\88\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
store i32 0, i32* %6
br label %7
7: ; preds = %44, %0
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 5
br i1 %9, label %15, label %10
10: ; preds = %7
%11 = load i32, i32* %6
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %11)
%13 = mul nsw i32 0, %12
%14 = icmp ne i32 %13, 0
br label %15
15: ; preds = %10, %7
%16 = phi i1 [ true, %7 ], [ %14, %10 ]
br i1 %16, label %17, label %47
17: ; preds = %15
store i32 0, i32* %4
store i32 0, i32* %2
br label %18
18: ; preds = %40, %17
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 4
br i1 %20, label %33, label %21
21: ; preds = %18
%22 = load i32, i32* %2
%23 = icmp slt i32 %22, 320
br i1 %23, label %24, label %25
24: ; preds = %21
br label %28
25: ; preds = %21
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %28
28: ; preds = %25, %24
%29 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), %24 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), %25 ]
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %29)
%31 = mul nsw i32 0, %30
%32 = icmp ne i32 %31, 0
br label %33
33: ; preds = %28, %18
%34 = phi i1 [ true, %18 ], [ %32, %28 ]
br i1 %34, label %35, label %43
35: ; preds = %33
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%37 = load i32, i32* %3
%38 = load i32, i32* %2
%39 = add nsw i32 %38, %37
store i32 %39, i32* %2
br label %40
40: ; preds = %35
%41 = load i32, i32* %4
%42 = add nsw i32 %41, 1
store i32 %42, i32* %4
br label %18
43: ; preds = %33
br label %44
44: ; preds = %43
%45 = load i32, i32* %5
%46 = add nsw i32 %45, 1
store i32 %46, i32* %5
br label %7
47: ; preds = %15
%48 = load i32, i32* %1
ret i32 %48
}

LLVM IR (-O2):
@.str = [17 x i8] c"\ED\95\A9\EA\B2\A9\EC\9E\90 %d\EB\AA\85\0A\00"
@.str.1 = [10 x i8] c"%s\ED\95\A9\EA\B2\A9\0A\00"
@.str.2 = [4 x i8] c"\EB\B6\88\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [3 x i8] c"%d\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%6 = load i32, i32* %1
%7 = add nsw i32 %6, %4
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%9 = load i32, i32* %1
%10 = add nsw i32 %9, %7
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%12 = load i32, i32* %1
%13 = add nsw i32 %12, %10
%14 = icmp slt i32 %13, 320
%15 = xor i1 %14, true
%16 = zext i1 %15 to i32
%17 = select i1 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%20 = load i32, i32* %1
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%22 = load i32, i32* %1
%23 = add nsw i32 %22, %20
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%25 = load i32, i32* %1
%26 = add nsw i32 %25, %23
%27 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%28 = load i32, i32* %1
%29 = add nsw i32 %28, %26
%30 = icmp slt i32 %29, 320
%31 = xor i1 %30, true
%32 = zext i1 %31 to i32
%33 = add nuw nsw i32 %16, %32
%34 = select i1 %30, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%37 = load i32, i32* %1
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%39 = load i32, i32* %1
%40 = add nsw i32 %39, %37
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%42 = load i32, i32* %1
%43 = add nsw i32 %42, %40
%44 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%45 = load i32, i32* %1
%46 = add nsw i32 %45, %43
%47 = icmp slt i32 %46, 320
%48 = xor i1 %47, true
%49 = zext i1 %48 to i32
%50 = add nuw nsw i32 %33, %49
%51 = select i1 %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %51)
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%54 = load i32, i32* %1
%55 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%56 = load i32, i32* %1
%57 = add nsw i32 %56, %54
%58 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%59 = load i32, i32* %1
%60 = add nsw i32 %59, %57
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%62 = load i32, i32* %1
%63 = add nsw i32 %62, %60
%64 = icmp slt i32 %63, 320
%65 = xor i1 %64, true
%66 = zext i1 %65 to i32
%67 = add nuw nsw i32 %50, %66
%68 = select i1 %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %68)
%70 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%71 = load i32, i32* %1
%72 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%73 = load i32, i32* %1
%74 = add nsw i32 %73, %71
%75 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%76 = load i32, i32* %1
%77 = add nsw i32 %76, %74
%78 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %1)
%79 = load i32, i32* %1
%80 = add nsw i32 %79, %77
%81 = icmp slt i32 %80, 320
%82 = xor i1 %81, true
%83 = zext i1 %82 to i32
%84 = add nuw nsw i32 %67, %83
%85 = select i1 %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8* %85)
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %84)
ret i32 0
}