#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 *, char);
int /*<<< orphan*/ scanf(char *, char *);
int main(int argc, const char *argv[]) {
  int i;
  char s[6];
  scanf("%s", s);
  for (i = 0; i < 5; i++) {
    printf("%c", s[i] + 4);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x1a(%rbp),%rsi
lea    0xebf(%rip),%rdi
call   1040 <scanf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
jge    1180 <main+0x60>
movslq -0x14(%rbp),%rax
movsbl -0x1a(%rbp,%rax,1),%eax
add    $0x4,%eax
lea    0xe99(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <main+0x2d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed4(%rip),%rdi
lea    0xa(%rsp),%rsi
call   1040 <scanf@plt>
mov    0xa(%rsp),%al
add    $0x4,%al
movsbl %al,%esi
lea    0xebd(%rip),%rbx
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0xb(%rsp),%al
add    $0x4,%al
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0xc(%rsp),%al
add    $0x4,%al
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0xd(%rsp),%al
add    $0x4,%al
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    0xe(%rsp),%al
add    $0x4,%al
movsbl %al,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"%c\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [6 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 0
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %8)
store i32 0, i32* %6
br label %10
10: ; preds = %22, %2
%11 = load i32, i32* %6
%12 = icmp slt i32 %11, 5
br i1 %12, label %13, label %25
13: ; preds = %10
%14 = load i32, i32* %6
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [6 x i8], [6 x i8]* %7, i64 0, i64 %15
%17 = load i8, i8* %16
%18 = sext i8 %17 to i32
%19 = add nsw i32 %18, 4
%20 = trunc i32 %19 to i8
%21 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %20)
br label %22
22: ; preds = %13
%23 = load i32, i32* %6
%24 = add nsw i32 %23, 1
store i32 %24, i32* %6
br label %10
25: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [3 x i8] c"%c\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [6 x i8]
%4 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i8, i8* %4
%7 = add i8 %6, 4
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %7)
%9 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 1
%10 = load i8, i8* %9
%11 = add i8 %10, 4
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %11)
%13 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 2
%14 = load i8, i8* %13
%15 = add i8 %14, 4
%16 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %15)
%17 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 3
%18 = load i8, i8* %17
%19 = add i8 %18, 4
%20 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %19)
%21 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 4
%22 = load i8, i8* %21
%23 = add i8 %22, 4
%24 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8 signext %23)
ret i32 0
}