#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*/ printf(char *);
int main() {
  unsigned char c = 0;
  if (c == 'a')
    printf("1\n");
  else if (c == 'b')
    printf("2\n");
  else if (c == 'c')
    printf("3\n");
  else if (c == 250)
    printf("4\n");
  else if (c == '\n')
    printf("5\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x5(%rbp)
movzbl -0x5(%rbp),%eax
cmp    $0x61,%eax
jne    1141 <main+0x31>
lea    0xec9(%rip),%rdi
call   1030 <printf@plt>
jmp    11ca <main+0xba>
movzbl -0x5(%rbp),%eax
cmp    $0x62,%eax
jne    115f <main+0x4f>
lea    0xeae(%rip),%rdi
call   1030 <printf@plt>
jmp    11c5 <main+0xb5>
movzbl -0x5(%rbp),%eax
cmp    $0x63,%eax
jne    117d <main+0x6d>
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
jmp    11c0 <main+0xb0>
movzbl -0x5(%rbp),%eax
cmp    $0xfa,%eax
jne    119d <main+0x8d>
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
jmp    11bb <main+0xab>
movzbl -0x5(%rbp),%eax
cmp    $0xa,%eax
jne    11b6 <main+0xa6>
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
jmp    11bb <main+0xab>
jmp    11c0 <main+0xb0>
jmp    11c5 <main+0xb5>
jmp    11ca <main+0xba>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [3 x i8] c"1\0A\00"
@.str.1 = [3 x i8] c"2\0A\00"
@.str.2 = [3 x i8] c"3\0A\00"
@.str.3 = [3 x i8] c"4\0A\00"
@.str.4 = [3 x i8] c"5\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
store i32 0, i32* %1
store i8 0, i8* %2
%3 = load i8, i8* %2
%4 = zext i8 %3 to i32
%5 = icmp eq i32 %4, 97
br i1 %5, label %6, label %8
6: ; preds = %0
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %36
8: ; preds = %0
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = icmp eq i32 %10, 98
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
br label %35
14: ; preds = %8
%15 = load i8, i8* %2
%16 = zext i8 %15 to i32
%17 = icmp eq i32 %16, 99
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
br label %34
20: ; preds = %14
%21 = load i8, i8* %2
%22 = zext i8 %21 to i32
%23 = icmp eq i32 %22, 250
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
br label %33
26: ; preds = %20
%27 = load i8, i8* %2
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 10
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %32
32: ; preds = %30, %26
br label %33
33: ; preds = %32, %24
br label %34
34: ; preds = %33, %18
br label %35
35: ; preds = %34, %12
br label %36
36: ; preds = %35, %6
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}