#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 age;
  scanf("%d", &age);
  if (age >= 20)
    printf("성인입니다.");
  else
    printf("당신은 %d년 후에 성인이 됩니다.", 20 - age);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
cmpl   $0x14,-0x8(%rbp)
jl     115c <main+0x3c>
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1172 <main+0x52>
mov    $0x14,%esi
sub    -0x8(%rbp),%esi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
mov    0x4(%rsp),%eax
cmp    $0x14,%eax
jl     114b <main+0x2b>
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
jmp    1160 <main+0x40>
mov    $0x14,%esi
sub    %eax,%esi
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@.str.1 = [17 x i8] c"\EC\84\B1\EC\9D\B8\EC\9E\85\EB\8B\88\EB\8B\A4.\00"
@.str.2 = [44 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\80 %d\EB\85\84 \ED\9B\84\EC\97\90 \EC\84\B1\EC\9D\B8\EC\9D\B4 \EB\90\A9\EB\8B\88\EB\8B\A4.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%4 = load i32, i32* %2
%5 = icmp sge i32 %4, 20
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %12
8: ; preds = %0
%9 = load i32, i32* %2
%10 = sub nsw i32 20, %9
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i32 %10)
br label %12
12: ; preds = %8, %6
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [17 x i8] c"\EC\84\B1\EC\9D\B8\EC\9E\85\EB\8B\88\EB\8B\A4.\00"
@.str.2 = [44 x i8] c"\EB\8B\B9\EC\8B\A0\EC\9D\80 %d\EB\85\84 \ED\9B\84\EC\97\90 \EC\84\B1\EC\9D\B8\EC\9D\B4 \EB\90\A9\EB\8B\88\EB\8B\A4.\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %1)
%4 = load i32, i32* %1
%5 = icmp sgt i32 %4, 19
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %11
8: ; preds = %0
%9 = sub nsw i32 20, %4
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i32 %9)
br label %11
11: ; preds = %8, %6
ret i32 0
}