#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 y, m;
  printf("점수를 입력하세요: ");
  scanf("%d", &y);
  printf("힙격점을 입력하세요: ");
  scanf("%d", &m);
  printf("%s합격\n", y >= m ? "" : "불");
  int money, book = 15000;
  scanf("%d", &money);
  printf("책을 구입%s다.", money >= book ? "한" : "하지 못합니");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedf(%rip),%rdi
lea    -0x4(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xed2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x4(%rbp),%ecx
mov    -0x8(%rbp),%edx
lea    0xed7(%rip),%rsi
lea    0xecf(%rip),%rax
cmp    %edx,%ecx
cmovge %rax,%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x3a98,-0x10(%rbp)
lea    0xe82(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%ecx
mov    -0x10(%rbp),%edx
lea    0xeb4(%rip),%rsi
lea    0xea9(%rip),%rax
cmp    %edx,%ecx
cmovge %rax,%rsi
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xed1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    0x8(%rsp),%eax
lea    0xed7(%rip),%rax
lea    0xecf(%rip),%rsi
cmovl  %rax,%rsi
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
cmpl   $0x3a98,0x4(%rsp)
lea    0xeba(%rip),%rax
lea    0xeb7(%rip),%rsi
cmovge %rax,%rsi
lea    0xe94(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [28 x i8] c"\EC\A0\90\EC\88\98\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [31 x i8] c"\ED\9E\99\EA\B2\A9\EC\A0\90\EC\9D\84 \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.3 = [10 x i8] c"%s\ED\95\A9\EA\B2\A9\0A\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [4 x i8] c"\EB\B6\88\00"
@.str.6 = [20 x i8] c"\EC\B1\85\EC\9D\84 \EA\B5\AC\EC\9E\85%s\EB\8B\A4.\00"
@.str.7 = [4 x i8] c"\ED\95\9C\00"
@.str.8 = [17 x i8] c"\ED\95\98\EC\A7\80 \EB\AA\BB\ED\95\A9\EB\8B\88\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = icmp sge i32 %9, %10
%12 = zext i1 %11 to i64
%13 = select i1 %11, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %13)
store i32 15000, i32* %4
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%16 = load i32, i32* %3
%17 = load i32, i32* %4
%18 = icmp sge i32 %16, %17
%19 = zext i1 %18 to i64
%20 = select i1 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [28 x i8] c"\EC\A0\90\EC\88\98\EB\A5\BC \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [31 x i8] c"\ED\9E\99\EA\B2\A9\EC\A0\90\EC\9D\84 \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94: \00"
@.str.3 = [10 x i8] c"%s\ED\95\A9\EA\B2\A9\0A\00"
@.str.4 = [1 x i8] zeroinitializer
@.str.5 = [4 x i8] c"\EB\B6\88\00"
@.str.6 = [20 x i8] c"\EC\B1\85\EC\9D\84 \EA\B5\AC\EC\9E\85%s\EB\8B\A4.\00"
@.str.7 = [4 x i8] c"\ED\95\9C\00"
@.str.8 = [17 x i8] c"\ED\95\98\EC\A7\80 \EB\AA\BB\ED\95\A9\EB\8B\88\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = load i32, i32* %1
%11 = load i32, i32* %2
%12 = icmp slt i32 %10, %11
%13 = select i1 %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.4, i64 0, i64 0)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %13)
%15 = bitcast i32* %3 to i8*
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 14999
%19 = select i1 %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %19)
ret i32 0
}