#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 */
char getchar();
int /*<<< orphan*/ printf(char *, char);
int main() {
  char ch, asskme;
  int asski;
  do {
    ch = getchar();
  } while (ch < 'a' || ch > 'z');
  if (ch <= 'm') {
    asski = 109 - ch;
    asskme = 109 + asski;
    printf("%c", asskme + 1);
  }
  if (ch >= 'n') {
    asski = 122 - ch;
    asskme = 97 + asski;
    printf("%c", asskme);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,-0x5(%rbp)
movsbl -0x5(%rbp),%ecx
mov    $0x1,%al
cmp    $0x61,%ecx
mov    %al,-0xd(%rbp)
jl     1158 <main+0x38>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
setg   %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
test   $0x1,%al
jne    112f <main+0xf>
movsbl -0x5(%rbp),%eax
cmp    $0x6d,%eax
jg     119d <main+0x7d>
movsbl -0x5(%rbp),%ecx
mov    $0x6d,%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x6d,%eax
mov    %al,-0x6(%rbp)
movsbl -0x6(%rbp),%eax
add    $0x1,%eax
lea    0xe6b(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6e,%eax
jl     11d1 <main+0xb1>
movsbl -0x5(%rbp),%ecx
mov    $0x7a,%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x61,%eax
mov    %al,-0x6(%rbp)
lea    0xe38(%rip),%rdi
movsbl -0x6(%rbp),%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <getchar@plt>
lea    -0x7b(%rax),%ecx
cmp    $0xe6,%cl
jb     1130 <main+0x10>
mov    $0xdb,%cl
sub    %al,%cl
movsbl %cl,%esi
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i32
store i32 0, i32* %1
br label %5
5: ; preds = %15, %0
%6 = call signext i8 (...) @getchar()
store i8 %6, i8* %2
br label %7
7: ; preds = %5
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp slt i32 %9, 97
br i1 %10, label %15, label %11
11: ; preds = %7
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp sgt i32 %13, 122
br label %15
15: ; preds = %11, %7
%16 = phi i1 [ true, %7 ], [ %14, %11 ]
br i1 %16, label %5, label %17
17: ; preds = %15
%18 = load i8, i8* %2
%19 = sext i8 %18 to i32
%20 = icmp sle i32 %19, 109
br i1 %20, label %21, label %33
21: ; preds = %17
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = sub nsw i32 109, %23
store i32 %24, i32* %4
%25 = load i32, i32* %4
%26 = add nsw i32 109, %25
%27 = trunc i32 %26 to i8
store i8 %27, i8* %3
%28 = load i8, i8* %3
%29 = sext i8 %28 to i32
%30 = add nsw i32 %29, 1
%31 = trunc i32 %30 to i8
%32 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %31)
br label %33
33: ; preds = %21, %17
%34 = load i8, i8* %2
%35 = sext i8 %34 to i32
%36 = icmp sge i32 %35, 110
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = load i8, i8* %2
%39 = sext i8 %38 to i32
%40 = sub nsw i32 122, %39
store i32 %40, i32* %4
%41 = load i32, i32* %4
%42 = add nsw i32 97, %41
%43 = trunc i32 %42 to i8
store i8 %43, i8* %3
%44 = load i8, i8* %3
%45 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %44)
br label %46
46: ; preds = %37, %33
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
br label %1
1: ; preds = %1, %0
%2 = tail call signext i8 (...) @getchar()
%3 = add i8 %2, -123
%4 = icmp ult i8 %3, -26
br i1 %4, label %1, label %5
5: ; preds = %1
%6 = sub nuw i8 -37, %2
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %6)
ret i32 0
}