#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*/ compare_always(int);
int /*<<< orphan*/ compare_eq42(int);
int /*<<< orphan*/ compare_ge42(int);
int /*<<< orphan*/ compare_gt42(int);
int /*<<< orphan*/ compare_le42(int);
int /*<<< orphan*/ compare_lt42(int);
int /*<<< orphan*/ compare_ne42(int);
int /*<<< orphan*/ compare_never(int);
int main() {
  compare_eq42(12);
  compare_eq42(42);
  compare_eq42(100);
  compare_ne42(12);
  compare_ne42(42);
  compare_ne42(100);
  compare_gt42(12);
  compare_gt42(42);
  compare_gt42(100);
  compare_lt42(12);
  compare_lt42(42);
  compare_lt42(100);
  compare_le42(12);
  compare_le42(42);
  compare_le42(100);
  compare_ge42(12);
  compare_ge42(42);
  compare_ge42(100);
  compare_never(12);
  compare_never(42);
  compare_never(100);
  compare_always(12);
  compare_always(42);
  compare_always(100);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xc,%edi
call   1030 <compare_eq42@plt>
mov    $0x2a,%edi
call   1030 <compare_eq42@plt>
mov    $0x64,%edi
call   1030 <compare_eq42@plt>
mov    $0xc,%edi
call   1070 <compare_ne42@plt>
mov    $0x2a,%edi
call   1070 <compare_ne42@plt>
mov    $0x64,%edi
call   1070 <compare_ne42@plt>
mov    $0xc,%edi
call   1080 <compare_gt42@plt>
mov    $0x2a,%edi
call   1080 <compare_gt42@plt>
mov    $0x64,%edi
call   1080 <compare_gt42@plt>
mov    $0xc,%edi
call   10a0 <compare_lt42@plt>
mov    $0x2a,%edi
call   10a0 <compare_lt42@plt>
mov    $0x64,%edi
call   10a0 <compare_lt42@plt>
mov    $0xc,%edi
call   1060 <compare_le42@plt>
mov    $0x2a,%edi
call   1060 <compare_le42@plt>
mov    $0x64,%edi
call   1060 <compare_le42@plt>
mov    $0xc,%edi
call   1040 <compare_ge42@plt>
mov    $0x2a,%edi
call   1040 <compare_ge42@plt>
mov    $0x64,%edi
call   1040 <compare_ge42@plt>
mov    $0xc,%edi
call   1050 <compare_never@plt>
mov    $0x2a,%edi
call   1050 <compare_never@plt>
mov    $0x64,%edi
call   1050 <compare_never@plt>
mov    $0xc,%edi
call   1090 <compare_always@plt>
mov    $0x2a,%edi
call   1090 <compare_always@plt>
mov    $0x64,%edi
call   1090 <compare_always@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xc,%edi
call   1030 <compare_eq42@plt>
mov    $0x2a,%edi
call   1030 <compare_eq42@plt>
mov    $0x64,%edi
call   1030 <compare_eq42@plt>
mov    $0xc,%edi
call   1070 <compare_ne42@plt>
mov    $0x2a,%edi
call   1070 <compare_ne42@plt>
mov    $0x64,%edi
call   1070 <compare_ne42@plt>
mov    $0xc,%edi
call   1080 <compare_gt42@plt>
mov    $0x2a,%edi
call   1080 <compare_gt42@plt>
mov    $0x64,%edi
call   1080 <compare_gt42@plt>
mov    $0xc,%edi
call   10a0 <compare_lt42@plt>
mov    $0x2a,%edi
call   10a0 <compare_lt42@plt>
mov    $0x64,%edi
call   10a0 <compare_lt42@plt>
mov    $0xc,%edi
call   1060 <compare_le42@plt>
mov    $0x2a,%edi
call   1060 <compare_le42@plt>
mov    $0x64,%edi
call   1060 <compare_le42@plt>
mov    $0xc,%edi
call   1040 <compare_ge42@plt>
mov    $0x2a,%edi
call   1040 <compare_ge42@plt>
mov    $0x64,%edi
call   1040 <compare_ge42@plt>
mov    $0xc,%edi
call   1050 <compare_never@plt>
mov    $0x2a,%edi
call   1050 <compare_never@plt>
mov    $0x64,%edi
call   1050 <compare_never@plt>
mov    $0xc,%edi
call   1090 <compare_always@plt>
mov    $0x2a,%edi
call   1090 <compare_always@plt>
mov    $0x64,%edi
call   1090 <compare_always@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @compare_eq42(i32 12)
%3 = call i32 @compare_eq42(i32 42)
%4 = call i32 @compare_eq42(i32 100)
%5 = call i32 @compare_ne42(i32 12)
%6 = call i32 @compare_ne42(i32 42)
%7 = call i32 @compare_ne42(i32 100)
%8 = call i32 @compare_gt42(i32 12)
%9 = call i32 @compare_gt42(i32 42)
%10 = call i32 @compare_gt42(i32 100)
%11 = call i32 @compare_lt42(i32 12)
%12 = call i32 @compare_lt42(i32 42)
%13 = call i32 @compare_lt42(i32 100)
%14 = call i32 @compare_le42(i32 12)
%15 = call i32 @compare_le42(i32 42)
%16 = call i32 @compare_le42(i32 100)
%17 = call i32 @compare_ge42(i32 12)
%18 = call i32 @compare_ge42(i32 42)
%19 = call i32 @compare_ge42(i32 100)
%20 = call i32 @compare_never(i32 12)
%21 = call i32 @compare_never(i32 42)
%22 = call i32 @compare_never(i32 100)
%23 = call i32 @compare_always(i32 12)
%24 = call i32 @compare_always(i32 42)
%25 = call i32 @compare_always(i32 100)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @compare_eq42(i32 12)
%2 = tail call i32 @compare_eq42(i32 42)
%3 = tail call i32 @compare_eq42(i32 100)
%4 = tail call i32 @compare_ne42(i32 12)
%5 = tail call i32 @compare_ne42(i32 42)
%6 = tail call i32 @compare_ne42(i32 100)
%7 = tail call i32 @compare_gt42(i32 12)
%8 = tail call i32 @compare_gt42(i32 42)
%9 = tail call i32 @compare_gt42(i32 100)
%10 = tail call i32 @compare_lt42(i32 12)
%11 = tail call i32 @compare_lt42(i32 42)
%12 = tail call i32 @compare_lt42(i32 100)
%13 = tail call i32 @compare_le42(i32 12)
%14 = tail call i32 @compare_le42(i32 42)
%15 = tail call i32 @compare_le42(i32 100)
%16 = tail call i32 @compare_ge42(i32 12)
%17 = tail call i32 @compare_ge42(i32 42)
%18 = tail call i32 @compare_ge42(i32 100)
%19 = tail call i32 @compare_never(i32 12)
%20 = tail call i32 @compare_never(i32 42)
%21 = tail call i32 @compare_never(i32 100)
%22 = tail call i32 @compare_always(i32 12)
%23 = tail call i32 @compare_always(i32 42)
%24 = tail call i32 @compare_always(i32 100)
ret i32 0
}