#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 printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, int *, int *);
int main() {
  int y, m, d;
  printf("당신의 사주를 봐 드립니다. \n연도, 월, 일을 차례대로 입력하세요:");
  scanf("%d %d %d", &y, &m, &d);
  return 0 * printf("당신의 사주는 %s입니다.\n",
                    (y - m + d) % 10 ? "그럭저럭" : "대박");
}


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   1030 <printf@plt>
lea    0xf15(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
sub    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
lea    0xf24(%rip),%rsi
lea    0xf10(%rip),%rax
cmp    $0x0,%edx
cmovne %rax,%rsi
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
imul   $0x0,%eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf20(%rip),%rdi
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x14(%rsp),%eax
sub    0x10(%rsp),%eax
add    0xc(%rsp),%eax
imul   $0xcccccccd,%eax,%eax
add    $0x19999998,%eax
ror    %eax
cmp    $0x19999999,%eax
lea    0xf1f(%rip),%rax
lea    0xf0b(%rip),%rsi
cmovb  %rax,%rsi
lea    0xede(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [89 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\98 \EC\82\AC\EC\A3\BC\EB\A5\BC \EB\B4\90 \EB\93\9C\EB\A6\BD\EB\8B\88\EB\8B\A4. \0A\EC\97\B0\EB\8F\84, \EC\9B\94, \EC\9D\BC\EC\9D\84 \EC\B0\A8\EB\A1\80\EB\8C\80\EB\A1\9C \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94:\00"
@.str.1 = [9 x i8] c"%d %d %d\00"
@.str.2 = [34 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\98 \EC\82\AC\EC\A3\BC\EB\8A\94 %s\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00"
@.str.3 = [13 x i8] c"\EA\B7\B8\EB\9F\AD\EC\A0\80\EB\9F\AD\00"
@.str.4 = [7 x i8] c"\EB\8C\80\EB\B0\95\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %2, i32* %3, i32* %4)
%7 = load i32, i32* %2
%8 = load i32, i32* %3
%9 = sub nsw i32 %7, %8
%10 = load i32, i32* %4
%11 = add nsw i32 %9, %10
%12 = srem i32 %11, 10
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%17 = mul nsw i32 0, %16
ret i32 %17
}

LLVM IR (-O2):
@.str = [89 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\98 \EC\82\AC\EC\A3\BC\EB\A5\BC \EB\B4\90 \EB\93\9C\EB\A6\BD\EB\8B\88\EB\8B\A4. \0A\EC\97\B0\EB\8F\84, \EC\9B\94, \EC\9D\BC\EC\9D\84 \EC\B0\A8\EB\A1\80\EB\8C\80\EB\A1\9C \EC\9E\85\EB\A0\A5\ED\95\98\EC\84\B8\EC\9A\94:\00"
@.str.1 = [9 x i8] c"%d %d %d\00"
@.str.2 = [34 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\98 \EC\82\AC\EC\A3\BC\EB\8A\94 %s\EC\9E\85\EB\8B\88\EB\8B\A4.\0A\00"
@.str.3 = [13 x i8] c"\EA\B7\B8\EB\9F\AD\EC\A0\80\EB\9F\AD\00"
@.str.4 = [7 x i8] c"\EB\8C\80\EB\B0\95\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 = bitcast i32* %3 to i8*
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%9 = load i32, i32* %1
%10 = load i32, i32* %2
%11 = sub i32 %9, %10
%12 = load i32, i32* %3
%13 = add nsw i32 %11, %12
%14 = srem i32 %13, 10
%15 = icmp eq i32 %14, 0
%16 = select i1 %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %16)
ret i32 0
}