#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*/ OPM_LogWLn();
int /*<<< orphan*/ OPM_LogWNum(int, long long);
int /*<<< orphan*/ OPM_LogWStr(unsigned char *, long long);
int /*<<< orphan*/ OPM_WriteString(unsigned char *, long long);
void OPC_Cmp(int rel) {
  switch (rel) {
  case 9:
    OPM_WriteString((unsigned char *)" == ", (long long)5);
    break;
  case 10:
    OPM_WriteString((unsigned char *)" != ", (long long)5);
    break;
  case 11:
    OPM_WriteString((unsigned char *)" < ", (long long)4);
    break;
  case 12:
    OPM_WriteString((unsigned char *)" <= ", (long long)5);
    break;
  case 13:
    OPM_WriteString((unsigned char *)" > ", (long long)4);
    break;
  case 14:
    OPM_WriteString((unsigned char *)" >= ", (long long)5);
    break;
  default:
    OPM_LogWStr((unsigned char *)"unhandled case in OPC.Cmp, rel = ",
                (long long)34);
    OPM_LogWNum(rel, ((long long)(0)));
    OPM_LogWLn();
    break;
  }
}


x86 assembly (clang, -O0):
<OPC_Cmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xfffffff7,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x5,%eax
ja     11f8 <OPC_Cmp+0xb8>
mov    -0x10(%rbp),%rax
lea    0xe95(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe9d(%rip),%rdi
mov    $0x5,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe8c(%rip),%rdi
mov    $0x5,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe7b(%rip),%rdi
mov    $0x4,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe69(%rip),%rdi
mov    $0x5,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe58(%rip),%rdi
mov    $0x4,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe46(%rip),%rdi
mov    $0x5,%esi
call   1060 <OPM_WriteString@plt>
jmp    121c <OPC_Cmp+0xdc>
lea    0xe35(%rip),%rdi
mov    $0x22,%esi
call   1030 <OPM_LogWStr@plt>
mov    -0x4(%rbp),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1050 <OPM_LogWNum@plt>
mov    $0x0,%al
call   1040 <OPM_LogWLn@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<OPC_Cmp>:
push   %rbx
mov    %edi,%ebx
lea    -0x9(%rbx),%eax
cmp    $0x5,%eax
ja     1164 <OPC_Cmp+0x24>
lea    0xeae(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xeb6(%rip),%rdi
jmp    11ba <OPC_Cmp+0x7a>
lea    0xec9(%rip),%rdi
mov    $0x22,%esi
call   1030 <OPM_LogWStr@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1050 <OPM_LogWNum@plt>
xor    %eax,%eax
pop    %rbx
jmp    1040 <OPM_LogWLn@plt>
lea    0xe90(%rip),%rdi
jmp    11ba <OPC_Cmp+0x7a>
lea    0xe8c(%rip),%rdi
jmp    11a8 <OPC_Cmp+0x68>
lea    0xe87(%rip),%rdi
jmp    11ba <OPC_Cmp+0x7a>
lea    0xe83(%rip),%rdi
mov    $0x4,%esi
pop    %rbx
jmp    1060 <OPM_WriteString@plt>
lea    0xe75(%rip),%rdi
mov    $0x5,%esi
pop    %rbx
jmp    1060 <OPM_WriteString@plt>

LLVM IR (-O0):
@.str = [5 x i8] c" == \00"
@.str.1 = [5 x i8] c" != \00"
@.str.2 = [4 x i8] c" < \00"
@.str.3 = [5 x i8] c" <= \00"
@.str.4 = [4 x i8] c" > \00"
@.str.5 = [5 x i8] c" >= \00"
@.str.6 = [34 x i8] c"unhandled case in OPC.Cmp, rel = \00"
define void @OPC_Cmp(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %16 [
i32 9, label %4
i32 10, label %6
i32 11, label %8
i32 12, label %10
i32 13, label %12
i32 14, label %14
]
4: ; preds = %1
%5 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 5)
br label %21
6: ; preds = %1
%7 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 5)
br label %21
8: ; preds = %1
%9 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 4)
br label %21
10: ; preds = %1
%11 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i64 5)
br label %21
12: ; preds = %1
%13 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 4)
br label %21
14: ; preds = %1
%15 = call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 5)
br label %21
16: ; preds = %1
%17 = call i32 @OPM_LogWStr(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i64 34)
%18 = load i32, i32* %2
%19 = call i32 @OPM_LogWNum(i32 %18, i64 0)
%20 = call i32 (...) @OPM_LogWLn()
br label %21
21: ; preds = %16, %14, %12, %10, %8, %6, %4
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c" == \00"
@.str.1 = [5 x i8] c" != \00"
@.str.2 = [4 x i8] c" < \00"
@.str.3 = [5 x i8] c" <= \00"
@.str.4 = [4 x i8] c" > \00"
@.str.5 = [5 x i8] c" >= \00"
@.str.6 = [34 x i8] c"unhandled case in OPC.Cmp, rel = \00"
define void @OPC_Cmp(i32 %0) {
switch i32 %0, label %14 [
i32 9, label %2
i32 10, label %4
i32 11, label %6
i32 12, label %8
i32 13, label %10
i32 14, label %12
]
2: ; preds = %1
%3 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 5)
br label %18
4: ; preds = %1
%5 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 5)
br label %18
6: ; preds = %1
%7 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 4)
br label %18
8: ; preds = %1
%9 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i64 5)
br label %18
10: ; preds = %1
%11 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i64 4)
br label %18
12: ; preds = %1
%13 = tail call i32 @OPM_WriteString(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 5)
br label %18
14: ; preds = %1
%15 = tail call i32 @OPM_LogWStr(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.6, i64 0, i64 0), i64 34)
%16 = tail call i32 @OPM_LogWNum(i32 %0, i64 0)
%17 = tail call i32 (...) @OPM_LogWLn()
br label %18
18: ; preds = %14, %12, %10, %8, %6, %4, %2
ret void
}