#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 JsonIO();
int /*<<< orphan*/ printf(char *);
int main() {
  int IOret = JsonIO();
  if (IOret == 1)
    printf("´ýÇÁ ÆÄÀÏÀ» ¿­ ¼ö ¾ø½À´Ï´Ù.");
  if (IOret == 2)
    printf("¸Þ¸ð¸®°¡ ºÎÁ·ÇÕ´Ï´Ù.");
  if (IOret == 3)
    printf("Ãâ·Â ÆÄÀÏÀ» ¿­ ¼ö ¾ø½À´Ï´Ù.");
  return IOret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <JsonIO@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    114f <main+0x2f>
lea    0xeb6(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    1165 <main+0x45>
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    117b <main+0x5b>
lea    0xee3(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <JsonIO@plt>
mov    %eax,%ebx
add    $0xffffffff,%eax
cmp    $0x2,%eax
ja     1147 <main+0x27>
cltq
lea    0xf51(%rip),%rcx
movslq (%rcx,%rax,4),%rdi
add    %rcx,%rdi
call   1040 <printf@plt>
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [50 x i8] c"\C2\B4\C3\BD\C3\87\C3\81 \C3\86\C3\84\C3\80\C3\8F\C3\80\C2\BB \C2\BF\C2\AD \C2\BC\C3\B6 \C2\BE\C3\B8\C2\BD\C3\80\C2\B4\C3\8F\C2\B4\C3\99.\00"
@.str.1 = [39 x i8] c"\C2\B8\C3\9E\C2\B8\C3\B0\C2\B8\C2\AE\C2\B0\C2\A1 \C2\BA\C3\8E\C3\81\C2\B7\C3\87\C3\95\C2\B4\C3\8F\C2\B4\C3\99.\00"
@.str.2 = [50 x i8] c"\C3\83\C3\A2\C2\B7\C3\82 \C3\86\C3\84\C3\80\C3\8F\C3\80\C2\BB \C2\BF\C2\AD \C2\BC\C3\B6 \C2\BE\C3\B8\C2\BD\C3\80\C2\B4\C3\8F\C2\B4\C3\99.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (...) @JsonIO()
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %6, %0
%9 = load i32, i32* %2
%10 = icmp eq i32 %9, 2
br i1 %10, label %11, label %13
11: ; preds = %8
%12 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %11, %8
%14 = load i32, i32* %2
%15 = icmp eq i32 %14, 3
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
br label %18
18: ; preds = %16, %13
%19 = load i32, i32* %2
ret i32 %19
}

LLVM IR (-O2):
@.str = [50 x i8] c"\C2\B4\C3\BD\C3\87\C3\81 \C3\86\C3\84\C3\80\C3\8F\C3\80\C2\BB \C2\BF\C2\AD \C2\BC\C3\B6 \C2\BE\C3\B8\C2\BD\C3\80\C2\B4\C3\8F\C2\B4\C3\99.\00"
@.str.1 = [39 x i8] c"\C2\B8\C3\9E\C2\B8\C3\B0\C2\B8\C2\AE\C2\B0\C2\A1 \C2\BA\C3\8E\C3\81\C2\B7\C3\87\C3\95\C2\B4\C3\8F\C2\B4\C3\99.\00"
@.str.2 = [50 x i8] c"\C3\83\C3\A2\C2\B7\C3\82 \C3\86\C3\84\C3\80\C3\8F\C3\80\C2\BB \C2\BF\C2\AD \C2\BC\C3\B6 \C2\BE\C3\B8\C2\BD\C3\80\C2\B4\C3\8F\C2\B4\C3\99.\00"
@reltable.main = [3 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([50 x i8]* @.str to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([39 x i8]* @.str.1 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([50 x i8]* @.str.2 to i64), i64 ptrtoint ([3 x i32]* @reltable.main to i64)) to i32)]
define i32 @main() {
%1 = tail call i32 (...) @JsonIO()
%2 = add i32 %1, -1
%3 = icmp ult i32 %2, 3
br i1 %3, label %4, label %9
4: ; preds = %0
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([3 x i32]* @reltable.main to i8*), i64 %6)
%8 = tail call i32 @printf(i8* dereferenceable(1) %7)
br label %9
9: ; preds = %0, %4
ret i32 %1
}