#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 z;
  for (z = 'a'; z <= 'd'; z++) {
    if ((((z != 'b') + (z == 'd')) == 1) && (((z != 'b') + (z == 'd')) == 1) &&
        (((z != 'a') + (z == 'b')) == 1) && (z != 'd'))
      break;
  }
  printf("The thief is %c\n", z - 32);
  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>
movsbl -0x5(%rbp),%eax
sub    $0x20,%eax
lea    0xe10(%rip),%rdi
movsbl %al,%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    $0x43,%esi
call   1030 <printf@plt>
xor    %eax,%eax
call   1040 <getchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"The thief is %c\0A\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 = sext i8 %50 to i32
%52 = sub nsw i32 %51, 32
%53 = trunc i32 %52 to i8
%54 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8 signext %53)
%55 = call i32 (...) @getchar()
ret i32 0
}

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