#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 *);
int main() {
  char A;
  A = getchar();
  if (A == 'a')
    printf("z");
  if (A == 'b')
    printf("y");
  if (A == 'c')
    printf("x");
  if (A == 'd')
    printf("w");
  if (A == 'e')
    printf("v");
  if (A == 'f')
    printf("u");
  if (A == 'g')
    printf("t");
  if (A == 'h')
    printf("s");
  if (A == 'i')
    printf("r");
  if (A == 'j')
    printf("q");
  if (A == 'k')
    printf("p");
  if (A == 'l')
    printf("o");
  if (A == 'm')
    printf("n");
  if (A == 'n')
    printf("m");
  if (A == 'o')
    printf("l");
  if (A == 'p')
    printf("k");
  if (A == 'q')
    printf("j");
  if (A == 'r')
    printf("i");
  if (A == 's')
    printf("h");
  if (A == 't')
    printf("g");
  if (A == 'u')
    printf("f");
  if (A == 'v')
    printf("e");
  if (A == 'w')
    printf("d");
  if (A == 'x')
    printf("c");
  if (A == 'y')
    printf("b");
  if (A == 'z')
    printf("a");
}


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),%eax
cmp    $0x61,%eax
jne    1152 <main+0x32>
lea    0xeb3(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x62,%eax
jne    116b <main+0x4b>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x63,%eax
jne    1184 <main+0x64>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
jne    119d <main+0x7d>
lea    0xe6e(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x65,%eax
jne    11b6 <main+0x96>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x66,%eax
jne    11cf <main+0xaf>
lea    0xe40(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x67,%eax
jne    11e8 <main+0xc8>
lea    0xe29(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x68,%eax
jne    1201 <main+0xe1>
lea    0xe12(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x69,%eax
jne    121a <main+0xfa>
lea    0xdfb(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6a,%eax
jne    1233 <main+0x113>
lea    0xde4(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6b,%eax
jne    124c <main+0x12c>
lea    0xdcd(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6c,%eax
jne    1265 <main+0x145>
lea    0xdb6(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6d,%eax
jne    127e <main+0x15e>
lea    0xd9f(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6e,%eax
jne    1297 <main+0x177>
lea    0xd88(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x6f,%eax
jne    12b0 <main+0x190>
lea    0xd71(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x70,%eax
jne    12c9 <main+0x1a9>
lea    0xd5a(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x71,%eax
jne    12e2 <main+0x1c2>
lea    0xd43(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x72,%eax
jne    12fb <main+0x1db>
lea    0xd2c(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x73,%eax
jne    1314 <main+0x1f4>
lea    0xd15(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x74,%eax
jne    132d <main+0x20d>
lea    0xcfe(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x75,%eax
jne    1346 <main+0x226>
lea    0xce7(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x76,%eax
jne    135f <main+0x23f>
lea    0xcd0(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x77,%eax
jne    1378 <main+0x258>
lea    0xcb9(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x78,%eax
jne    1391 <main+0x271>
lea    0xca2(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x79,%eax
jne    13aa <main+0x28a>
lea    0xc8b(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x5(%rbp),%eax
cmp    $0x7a,%eax
jne    13c3 <main+0x2a3>
lea    0xc74(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <getchar@plt>
add    $0x9f,%al
cmp    $0x19,%al
ja     113d <main+0x1d>
movzbl %al,%eax
mov    $0x7a,%edi
sub    %eax,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"z\00"
@.str.1 = [2 x i8] c"y\00"
@.str.2 = [2 x i8] c"x\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [2 x i8] c"v\00"
@.str.5 = [2 x i8] c"u\00"
@.str.6 = [2 x i8] c"t\00"
@.str.7 = [2 x i8] c"s\00"
@.str.8 = [2 x i8] c"r\00"
@.str.9 = [2 x i8] c"q\00"
@.str.10 = [2 x i8] c"p\00"
@.str.11 = [2 x i8] c"o\00"
@.str.12 = [2 x i8] c"n\00"
@.str.13 = [2 x i8] c"m\00"
@.str.14 = [2 x i8] c"l\00"
@.str.15 = [2 x i8] c"k\00"
@.str.16 = [2 x i8] c"j\00"
@.str.17 = [2 x i8] c"i\00"
@.str.18 = [2 x i8] c"h\00"
@.str.19 = [2 x i8] c"g\00"
@.str.20 = [2 x i8] c"f\00"
@.str.21 = [2 x i8] c"e\00"
@.str.22 = [2 x i8] c"d\00"
@.str.23 = [2 x i8] c"c\00"
@.str.24 = [2 x i8] c"b\00"
@.str.25 = [2 x i8] c"a\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
%3 = call signext i8 (...) @getchar()
store i8 %3, i8* %2
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp eq i32 %5, 97
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %7, %0
%10 = load i8, i8* %2
%11 = sext i8 %10 to i32
%12 = icmp eq i32 %11, 98
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %13, %9
%16 = load i8, i8* %2
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 99
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %21
21: ; preds = %19, %15
%22 = load i8, i8* %2
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 100
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %27
27: ; preds = %25, %21
%28 = load i8, i8* %2
%29 = sext i8 %28 to i32
%30 = icmp eq i32 %29, 101
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %27
%34 = load i8, i8* %2
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 102
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %39
39: ; preds = %37, %33
%40 = load i8, i8* %2
%41 = sext i8 %40 to i32
%42 = icmp eq i32 %41, 103
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %45
45: ; preds = %43, %39
%46 = load i8, i8* %2
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 104
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %51
51: ; preds = %49, %45
%52 = load i8, i8* %2
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %53, 105
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %57
57: ; preds = %55, %51
%58 = load i8, i8* %2
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 106
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %63
63: ; preds = %61, %57
%64 = load i8, i8* %2
%65 = sext i8 %64 to i32
%66 = icmp eq i32 %65, 107
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %69
69: ; preds = %67, %63
%70 = load i8, i8* %2
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %71, 108
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %75
75: ; preds = %73, %69
%76 = load i8, i8* %2
%77 = sext i8 %76 to i32
%78 = icmp eq i32 %77, 109
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %79, %75
%82 = load i8, i8* %2
%83 = sext i8 %82 to i32
%84 = icmp eq i32 %83, 110
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %87
87: ; preds = %85, %81
%88 = load i8, i8* %2
%89 = sext i8 %88 to i32
%90 = icmp eq i32 %89, 111
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %93
93: ; preds = %91, %87
%94 = load i8, i8* %2
%95 = sext i8 %94 to i32
%96 = icmp eq i32 %95, 112
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %99
99: ; preds = %97, %93
%100 = load i8, i8* %2
%101 = sext i8 %100 to i32
%102 = icmp eq i32 %101, 113
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %105
105: ; preds = %103, %99
%106 = load i8, i8* %2
%107 = sext i8 %106 to i32
%108 = icmp eq i32 %107, 114
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
br label %111
111: ; preds = %109, %105
%112 = load i8, i8* %2
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 115
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %117
117: ; preds = %115, %111
%118 = load i8, i8* %2
%119 = sext i8 %118 to i32
%120 = icmp eq i32 %119, 116
br i1 %120, label %121, label %123
121: ; preds = %117
%122 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %123
123: ; preds = %121, %117
%124 = load i8, i8* %2
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %125, 117
br i1 %126, label %127, label %129
127: ; preds = %123
%128 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
br label %129
129: ; preds = %127, %123
%130 = load i8, i8* %2
%131 = sext i8 %130 to i32
%132 = icmp eq i32 %131, 118
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %135
135: ; preds = %133, %129
%136 = load i8, i8* %2
%137 = sext i8 %136 to i32
%138 = icmp eq i32 %137, 119
br i1 %138, label %139, label %141
139: ; preds = %135
%140 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
br label %141
141: ; preds = %139, %135
%142 = load i8, i8* %2
%143 = sext i8 %142 to i32
%144 = icmp eq i32 %143, 120
br i1 %144, label %145, label %147
145: ; preds = %141
%146 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %147
147: ; preds = %145, %141
%148 = load i8, i8* %2
%149 = sext i8 %148 to i32
%150 = icmp eq i32 %149, 121
br i1 %150, label %151, label %153
151: ; preds = %147
%152 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
br label %153
153: ; preds = %151, %147
%154 = load i8, i8* %2
%155 = sext i8 %154 to i32
%156 = icmp eq i32 %155, 122
br i1 %156, label %157, label %159
157: ; preds = %153
%158 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %159
159: ; preds = %157, %153
%160 = load i32, i32* %1
ret i32 %160
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call signext i8 (...) @getchar()
%2 = add i8 %1, -97
%3 = icmp ult i8 %2, 26
br i1 %3, label %4, label %8
4: ; preds = %0
%5 = zext i8 %2 to i32
%6 = sub nsw i32 122, %5
%7 = tail call i32 @putchar(i32 %6)
br label %8
8: ; preds = %0, %4
ret i32 0
}