#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 i = 0;
  char stri[100], stro[i];
  for (i = 0; i <= 100; i++) {
    scanf("%c", &stri[i]);
    while (stri[i] == '\0') {
      return 0;
    }
    stro[i] = stri[i] + stri[i] - 96;
    if (stro[i] > 122) {
      stro[i] = stro[i] - 122 + 96;
      printf("%c", stro[i]);
    } else
      printf("%c", stro[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x78(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x90(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x80(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x64,-0x8(%rbp)
jg     124f <main+0x12f>
movslq -0x8(%rbp),%rax
lea    -0x70(%rbp),%rsi
add    %rax,%rsi
lea    0xe7b(%rip),%rdi
call   1040 <scanf@plt>
movslq -0x8(%rbp),%rax
movsbl -0x70(%rbp,%rax,1),%eax
cmp    $0x0,%eax
jne    11b2 <main+0x92>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x84(%rbp)
jmp    1260 <main+0x140>
mov    -0x90(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsbl -0x70(%rbp,%rcx,1),%ecx
movslq -0x8(%rbp),%rdx
movsbl -0x70(%rbp,%rdx,1),%edx
add    %edx,%ecx
sub    $0x60,%ecx
mov    %cl,%dl
movslq -0x8(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
movslq -0x8(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x7a,%eax
jle    1221 <main+0x101>
mov    -0x90(%rbp),%rax
movslq -0x8(%rbp),%rcx
movsbl (%rax,%rcx,1),%ecx
sub    $0x7a,%ecx
add    $0x60,%ecx
mov    %cl,%dl
movslq -0x8(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
movslq -0x8(%rbp),%rcx
lea    0xded(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <printf@plt>
jmp    123c <main+0x11c>
mov    -0x90(%rbp),%rax
movslq -0x8(%rbp),%rcx
lea    0xdcd(%rip),%rdi
movsbl (%rax,%rcx,1),%esi
call   1030 <printf@plt>
jmp    1241 <main+0x121>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1169 <main+0x49>
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x84(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x70,%rsp
mov    %rsp,%r14
xor    %ebx,%ebx
lea    0xecb(%rip),%r15
cs nopw 0x0(%rax,%rax,1)
nop
lea    (%rsp,%rbx,1),%rsi
mov    %r15,%rdi
call   1040 <scanf@plt>
movzbl (%rsp,%rbx,1),%eax
test   %al,%al
je     117c <main+0x5c>
add    %al,%al
lea    -0x60(%rax),%ecx
add    $0x86,%al
cmp    $0x7b,%cl
movzbl %al,%eax
movzbl %cl,%ecx
cmovge %eax,%ecx
movsbl %cl,%esi
mov    %r15,%rdi
call   1030 <printf@plt>
add    $0x1,%rbx
cmp    $0x65,%rbx
jne    1140 <main+0x20>
mov    %r14,%rsp
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [100 x i8]
%4 = alloca i8*
%5 = alloca i64
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%7 = load i32, i32* %2
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %4
%10 = alloca i8, i64 %8
store i64 %8, i64* %5
store i32 0, i32* %2
br label %11
11: ; preds = %74, %0
%12 = load i32, i32* %2
%13 = icmp sle i32 %12, 100
br i1 %13, label %14, label %77
14: ; preds = %11
%15 = load i32, i32* %2
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %17)
br label %19
19: ; preds = %14
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %19
store i32 0, i32* %1
store i32 1, i32* %6
br label %78
27: ; preds = %19
%28 = load i32, i32* %2
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %29
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = load i32, i32* %2
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = add nsw i32 %32, %37
%39 = sub nsw i32 %38, 96
%40 = trunc i32 %39 to i8
%41 = load i32, i32* %2
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i8, i8* %10, i64 %42
store i8 %40, i8* %43
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds i8, i8* %10, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp sgt i32 %48, 122
br i1 %49, label %50, label %67
50: ; preds = %27
%51 = load i32, i32* %2
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8, i8* %10, i64 %52
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = sub nsw i32 %55, 122
%57 = add nsw i32 %56, 96
%58 = trunc i32 %57 to i8
%59 = load i32, i32* %2
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, i8* %10, i64 %60
store i8 %58, i8* %61
%62 = load i32, i32* %2
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i8, i8* %10, i64 %63
%65 = load i8, i8* %64
%66 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %65)
br label %73
67: ; preds = %27
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %10, i64 %69
%71 = load i8, i8* %70
%72 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %71)
br label %73
73: ; preds = %67, %50
br label %74
74: ; preds = %73
%75 = load i32, i32* %2
%76 = add nsw i32 %75, 1
store i32 %76, i32* %2
br label %11
77: ; preds = %11
store i32 0, i32* %1
store i32 1, i32* %6
br label %78
78: ; preds = %77, %26
%79 = load i8*, i8** %4
%80 = load i32, i32* %1
ret i32 %80
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%3 = tail call i8* @llvm.stacksave()
br label %4
4: ; preds = %0, %10
%5 = phi i64 [ 0, %0 ], [ %17, %10 ]
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 %5
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %6)
%8 = load i8, i8* %6
%9 = icmp eq i8 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %4
%11 = shl i8 %8, 1
%12 = add i8 %11, -96
%13 = icmp sgt i8 %12, 122
%14 = add i8 %11, -122
%15 = select i1 %13, i8 %14, i8 %12
%16 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %15)
%17 = add nuw nsw i64 %5, 1
%18 = icmp eq i64 %17, 101
br i1 %18, label %19, label %4
19: ; preds = %10, %4
ret i32 0
}