#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 */
typedef int userInput;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf_s(char *, char *, int);
int main(void) {
  char userInput;
  printf("¾ËÆÄºª ÇÏ³ª¸¦ ÀÔ·ÂÇÏ¼¼¿ä. (´Ü x,y,z Á¦¿Ü) ");
  scanf_s("%c", &userInput, 1);
  printf("´ç½ÅÀÌ ÀÔ·ÂÇÑ ¾ËÆÄºª°ú ÀÌÈÄ µÎ°³´Â %c %c %c ÀÔ´Ï´Ù. \n", userInput,
         userInput + 1, (userInput) + 2);
  return 0;
}


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    0xf03(%rip),%rdi
lea    -0x5(%rbp),%rsi
mov    $0x1,%edx
call   1040 <scanf_s@plt>
movsbl -0x5(%rbp),%esi
movsbl -0x5(%rbp),%edx
add    $0x1,%edx
movsbl -0x5(%rbp),%ecx
add    $0x2,%ecx
lea    0xedf(%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
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
lea    0x7(%rsp),%rsi
mov    $0x1,%edx
call   1040 <scanf_s@plt>
movsbl 0x7(%rsp),%esi
lea    0x1(%rsi),%edx
lea    0x2(%rsi),%ecx
lea    0xef3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [71 x i8] c"\C2\BE\C3\8B\C3\86\C3\84\C2\BA\C2\AA \C3\87\C3\8F\C2\B3\C2\AA\C2\B8\C2\A6 \C3\80\C3\94\C2\B7\C3\82\C3\87\C3\8F\C2\BC\C2\BC\C2\BF\C3\A4. (\C2\B4\C3\9C x,y,z \C3\81\C2\A6\C2\BF\C3\9C) \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [90 x i8] c"\C2\B4\C3\A7\C2\BD\C3\85\C3\80\C3\8C \C3\80\C3\94\C2\B7\C3\82\C3\87\C3\91 \C2\BE\C3\8B\C3\86\C3\84\C2\BA\C2\AA\C2\B0\C3\BA \C3\80\C3\8C\C3\88\C3\84 \C2\B5\C3\8E\C2\B0\C2\B3\C2\B4\C3\82 %c %c %c \C3\80\C3\94\C2\B4\C3\8F\C2\B4\C3\99. \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2, i32 1)
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = load i8, i8* %2
%8 = sext i8 %7 to i32
%9 = add nsw i32 %8, 1
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = add nsw i32 %11, 2
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.2, i64 0, i64 0), i32 %6, i32 %9, i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [71 x i8] c"\C2\BE\C3\8B\C3\86\C3\84\C2\BA\C2\AA \C3\87\C3\8F\C2\B3\C2\AA\C2\B8\C2\A6 \C3\80\C3\94\C2\B7\C3\82\C3\87\C3\8F\C2\BC\C2\BC\C2\BF\C3\A4. (\C2\B4\C3\9C x,y,z \C3\81\C2\A6\C2\BF\C3\9C) \00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [90 x i8] c"\C2\B4\C3\A7\C2\BD\C3\85\C3\80\C3\8C \C3\80\C3\94\C2\B7\C3\82\C3\87\C3\91 \C2\BE\C3\8B\C3\86\C3\84\C2\BA\C2\AA\C2\B0\C3\BA \C3\80\C3\8C\C3\88\C3\84 \C2\B5\C3\8E\C2\B0\C2\B3\C2\B4\C3\82 %c %c %c \C3\80\C3\94\C2\B4\C3\8F\C2\B4\C3\99. \0A\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf_s(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1, i32 1)
%4 = load i8, i8* %1
%5 = sext i8 %4 to i32
%6 = add nsw i32 %5, 1
%7 = add nsw i32 %5, 2
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @.str.2, i64 0, i64 0), i32 %5, i32 %6, i32 %7)
ret i32 0
}