#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*/ getchar();
int /*<<< orphan*/ printf(char *, char);
int main() {
  char x;
  for (x = 'a'; x <= 'd'; x++)
    if ((((x != 'b') + (x == 'd')) == 1) && (((x != 'b') + (x == 'd')) == 1) &&
        (((x != 'a') + (x == 'b')) == 1) && (x != 'd'))
      break;
  printf("%c", x);
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x61,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
jg     11e2 <main+0xc2>
movsbl -0x5(%rbp),%eax
cmp    $0x62,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x5(%rbp),%ecx
cmp    $0x64,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
cmp    $0x1,%eax
jne    11d0 <main+0xb0>
movsbl -0x5(%rbp),%eax
cmp    $0x62,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x5(%rbp),%ecx
cmp    $0x64,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
cmp    $0x1,%eax
jne    11d0 <main+0xb0>
movsbl -0x5(%rbp),%eax
cmp    $0x61,%eax
setne  %al
and    $0x1,%al
movzbl %al,%eax
movsbl -0x5(%rbp),%ecx
cmp    $0x62,%ecx
sete   %cl
and    $0x1,%cl
movzbl %cl,%ecx
add    %ecx,%eax
cmp    $0x1,%eax
jne    11d0 <main+0xb0>
movsbl -0x5(%rbp),%eax
cmp    $0x64,%eax
je     11d0 <main+0xb0>
jmp    11e2 <main+0xc2>
jmp    11d5 <main+0xb5>
mov    -0x5(%rbp),%al
add    $0x1,%al
mov    %al,-0x5(%rbp)
jmp    1133 <main+0x13>
lea    0xe17(%rip),%rdi
movsbl -0x5(%rbp),%esi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x63,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@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
store i32 0, i32* %1
store i8 97, i8* %2
br label %3
3: ; preds = %46, %0
%4 = load i8, i8* %2
%5 = sext i8 %4 to i32
%6 = icmp sle i32 %5, 100
br i1 %6, label %7, label %49
7: ; preds = %3
%8 = load i8, i8* %2
%9 = sext i8 %8 to i32
%10 = icmp ne i32 %9, 98
%11 = zext i1 %10 to i32
%12 = load i8, i8* %2
%13 = sext i8 %12 to i32
%14 = icmp eq i32 %13, 100
%15 = zext i1 %14 to i32
%16 = add nsw i32 %11, %15
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %45
18: ; preds = %7
%19 = load i8, i8* %2
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 98
%22 = zext i1 %21 to i32
%23 = load i8, i8* %2
%24 = sext i8 %23 to i32
%25 = icmp eq i32 %24, 100
%26 = zext i1 %25 to i32
%27 = add nsw i32 %22, %26
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %45
29: ; preds = %18
%30 = load i8, i8* %2
%31 = sext i8 %30 to i32
%32 = icmp ne i32 %31, 97
%33 = zext i1 %32 to i32
%34 = load i8, i8* %2
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 98
%37 = zext i1 %36 to i32
%38 = add nsw i32 %33, %37
%39 = icmp eq i32 %38, 1
br i1 %39, label %40, label %45
40: ; preds = %29
%41 = load i8, i8* %2
%42 = sext i8 %41 to i32
%43 = icmp ne i32 %42, 100
br i1 %43, label %44, label %45
44: ; preds = %40
br label %49
45: ; preds = %40, %29, %18, %7
br label %46
46: ; preds = %45
%47 = load i8, i8* %2
%48 = add i8 %47, 1
store i8 %48, i8* %2
br label %3
49: ; preds = %44, %3
%50 = load i8, i8* %2
%51 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext %50)
%52 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%c\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8 signext 99)
%2 = tail call i32 (...) @getchar()
ret i32 0
}