#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 ch[3], i;
  for (i = 0; i < 3; i++) {
    ch[i] = getchar();
    if (!((ch[i] >= 'a' && ch[i] <= 'z') || (ch[i] >= 'A' && ch[i] <= 'Z'))) {
      printf("The letters are not adjacent with each other.\n");
      return 0;
    }
  }
  if (ch[0] + 1 == ch[1] && ch[1] + 1 == ch[2])
    printf("The letters are adjacent with each other.\n");
  else
    printf("The letters are not adjacent with each other.\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x8(%rbp)
movsbl -0x8(%rbp),%eax
cmp    $0x3,%eax
jge    11c8 <main+0xa8>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    %al,%cl
movsbq -0x8(%rbp),%rax
mov    %cl,-0x7(%rbp,%rax,1)
movsbq -0x8(%rbp),%rax
movsbl -0x7(%rbp,%rax,1),%eax
cmp    $0x61,%eax
jl     1178 <main+0x58>
movsbq -0x8(%rbp),%rax
movsbl -0x7(%rbp,%rax,1),%eax
cmp    $0x7a,%eax
jle    11b6 <main+0x96>
movsbq -0x8(%rbp),%rax
movsbl -0x7(%rbp,%rax,1),%eax
cmp    $0x41,%eax
jl     119e <main+0x7e>
movsbq -0x8(%rbp),%rax
movsbl -0x7(%rbp,%rax,1),%eax
cmp    $0x5a,%eax
jle    11b6 <main+0x96>
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1212 <main+0xf2>
jmp    11bb <main+0x9b>
mov    -0x8(%rbp),%al
add    $0x1,%al
mov    %al,-0x8(%rbp)
jmp    1133 <main+0x13>
movsbl -0x7(%rbp),%eax
add    $0x1,%eax
movsbl -0x6(%rbp),%ecx
cmp    %ecx,%eax
jne    11ff <main+0xdf>
movsbl -0x6(%rbp),%eax
add    $0x1,%eax
movsbl -0x5(%rbp),%ecx
cmp    %ecx,%eax
jne    11ff <main+0xdf>
lea    0xe3a(%rip),%rdi
call   1030 <printf@plt>
jmp    120b <main+0xeb>
lea    0xdfa(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ebx
and    $0xdf,%al
add    $0xbf,%al
lea    0xef2(%rip),%r14
cmp    $0x19,%al
ja     1180 <main+0x60>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ebp
and    $0xdf,%al
add    $0xbf,%al
cmp    $0x19,%al
ja     1180 <main+0x60>
xor    %eax,%eax
call   1040 <getchar@plt>
mov    %eax,%ecx
and    $0xdf,%cl
add    $0xbf,%cl
cmp    $0x19,%cl
ja     1180 <main+0x60>
movsbl %bl,%ecx
lea    0x1(%rcx),%edx
movsbl %bpl,%esi
cmp    %esi,%edx
jne    1180 <main+0x60>
add    $0x2,%ecx
movsbl %al,%eax
cmp    %eax,%ecx
jne    1180 <main+0x60>
lea    0xe80(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [47 x i8] c"The letters are not adjacent with each other.\0A\00"
@.str.1 = [43 x i8] c"The letters are adjacent with each other.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i8]
%3 = alloca i8
store i32 0, i32* %1
store i8 0, i8* %3
br label %4
4: ; preds = %43, %0
%5 = load i8, i8* %3
%6 = sext i8 %5 to i32
%7 = icmp slt i32 %6, 3
br i1 %7, label %8, label %46
8: ; preds = %4
%9 = call signext i8 (...) @getchar()
%10 = load i8, i8* %3
%11 = sext i8 %10 to i64
%12 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %11
store i8 %9, i8* %12
%13 = load i8, i8* %3
%14 = sext i8 %13 to i64
%15 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %14
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp sge i32 %17, 97
br i1 %18, label %19, label %26
19: ; preds = %8
%20 = load i8, i8* %3
%21 = sext i8 %20 to i64
%22 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %21
%23 = load i8, i8* %22
%24 = sext i8 %23 to i32
%25 = icmp sle i32 %24, 122
br i1 %25, label %42, label %26
26: ; preds = %19, %8
%27 = load i8, i8* %3
%28 = sext i8 %27 to i64
%29 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %28
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp sge i32 %31, 65
br i1 %32, label %33, label %40
33: ; preds = %26
%34 = load i8, i8* %3
%35 = sext i8 %34 to i64
%36 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 %35
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp sle i32 %38, 90
br i1 %39, label %42, label %40
40: ; preds = %33, %26
%41 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %69
42: ; preds = %33, %19
br label %43
43: ; preds = %42
%44 = load i8, i8* %3
%45 = add i8 %44, 1
store i8 %45, i8* %3
br label %4
46: ; preds = %4
%47 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 0
%48 = load i8, i8* %47
%49 = sext i8 %48 to i32
%50 = add nsw i32 %49, 1
%51 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 1
%52 = load i8, i8* %51
%53 = sext i8 %52 to i32
%54 = icmp eq i32 %50, %53
br i1 %54, label %55, label %66
55: ; preds = %46
%56 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 1
%57 = load i8, i8* %56
%58 = sext i8 %57 to i32
%59 = add nsw i32 %58, 1
%60 = getelementptr inbounds [3 x i8], [3 x i8]* %2, i64 0, i64 2
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = icmp eq i32 %59, %62
br i1 %63, label %64, label %66
64: ; preds = %55
%65 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %68
66: ; preds = %55, %46
%67 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str, i64 0, i64 0))
br label %68
68: ; preds = %66, %64
store i32 0, i32* %1
br label %69
69: ; preds = %68, %40
%70 = load i32, i32* %1
ret i32 %70
}

LLVM IR (-O2):
@str.2 = [42 x i8] c"The letters are adjacent with each other.\00"
@str.3 = [46 x i8] c"The letters are not adjacent with each other.\00"
define i32 @main() {
%1 = tail call signext i8 (...) @getchar()
%2 = and i8 %1, -33
%3 = add i8 %2, -65
%4 = icmp ult i8 %3, 26
br i1 %4, label %5, label %25
5: ; preds = %0
%6 = tail call signext i8 (...) @getchar()
%7 = and i8 %6, -33
%8 = add i8 %7, -65
%9 = icmp ult i8 %8, 26
br i1 %9, label %10, label %25
10: ; preds = %5
%11 = tail call signext i8 (...) @getchar()
%12 = and i8 %11, -33
%13 = add i8 %12, -65
%14 = icmp ult i8 %13, 26
br i1 %14, label %15, label %25
15: ; preds = %10
%16 = sext i8 %1 to i32
%17 = add nsw i32 %16, 1
%18 = sext i8 %6 to i32
%19 = icmp eq i32 %17, %18
br i1 %19, label %20, label %24
20: ; preds = %15
%21 = add nsw i32 %16, 2
%22 = sext i8 %11 to i32
%23 = icmp eq i32 %21, %22
br i1 %23, label %25, label %24
24: ; preds = %20, %15
br label %25
25: ; preds = %20, %0, %5, %10, %24
%26 = phi i8* [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.3, i64 0, i64 0), %24 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.3, i64 0, i64 0), %10 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([46 x i8], [46 x i8]* @str.3, i64 0, i64 0), %0 ], [ getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0), %20 ]
%27 = tail call i32 @puts(i8* dereferenceable(1) %26)
ret i32 0
}