#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_and_print(int, int, double);
int main(int argc, char *argv[]) {
  compare_and_print(0, 0, 1.0);
  compare_and_print(1, 1, 1.0);
  compare_and_print(0, 2, 0.0);
  compare_and_print(0, 4, 0.0);
  compare_and_print(0, 5, 0.0);
  compare_and_print(0, 1, .199999988);
  compare_and_print(0, 3, .800000011);
  compare_and_print(5, 6, .444444417);
  compare_and_print(6, 5, .444444417);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
xor    %esi,%esi
movsd  0xeef(%rip),%xmm0
mov    %esi,%edi
call   1030 <compare_and_print@plt>
mov    $0x1,%esi
movsd  0xedb(%rip),%xmm0
mov    %esi,%edi
call   1030 <compare_and_print@plt>
xor    %edi,%edi
mov    $0x2,%esi
xorps  %xmm0,%xmm0
call   1030 <compare_and_print@plt>
xor    %edi,%edi
mov    $0x4,%esi
xorps  %xmm0,%xmm0
call   1030 <compare_and_print@plt>
xor    %edi,%edi
mov    $0x5,%esi
xorps  %xmm0,%xmm0
call   1030 <compare_and_print@plt>
xor    %edi,%edi
mov    $0x1,%esi
movsd  0xe90(%rip),%xmm0
call   1030 <compare_and_print@plt>
xor    %edi,%edi
mov    $0x3,%esi
movsd  0xe74(%rip),%xmm0
call   1030 <compare_and_print@plt>
mov    $0x5,%edi
mov    $0x6,%esi
movsd  0xe55(%rip),%xmm0
call   1030 <compare_and_print@plt>
mov    $0x6,%edi
mov    $0x5,%esi
movsd  0xe3e(%rip),%xmm0
call   1030 <compare_and_print@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movsd  0xee7(%rip),%xmm0
xor    %edi,%edi
xor    %esi,%esi
call   1030 <compare_and_print@plt>
mov    $0x1,%edi
mov    $0x1,%esi
movsd  0xecc(%rip),%xmm0
call   1030 <compare_and_print@plt>
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x2,%esi
call   1030 <compare_and_print@plt>
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x4,%esi
call   1030 <compare_and_print@plt>
xorps  %xmm0,%xmm0
xor    %edi,%edi
mov    $0x5,%esi
call   1030 <compare_and_print@plt>
movsd  0xe9a(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
call   1030 <compare_and_print@plt>
movsd  0xe8e(%rip),%xmm0
xor    %edi,%edi
mov    $0x3,%esi
call   1030 <compare_and_print@plt>
movsd  0xe82(%rip),%xmm0
mov    $0x5,%edi
mov    $0x6,%esi
call   1030 <compare_and_print@plt>
mov    $0x6,%edi
mov    $0x5,%esi
movsd  0xe61(%rip),%xmm0
call   1030 <compare_and_print@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = call i32 @compare_and_print(i32 0, i32 0, double 1.000000e+00)
%6 = call i32 @compare_and_print(i32 1, i32 1, double 1.000000e+00)
%7 = call i32 @compare_and_print(i32 0, i32 2, double 0.000000e+00)
%8 = call i32 @compare_and_print(i32 0, i32 4, double 0.000000e+00)
%9 = call i32 @compare_and_print(i32 0, i32 5, double 0.000000e+00)
%10 = call i32 @compare_and_print(i32 0, i32 1, double 0x3FC999997FD487BD)
%11 = call i32 @compare_and_print(i32 0, i32 3, double 0x3FE999999F816DB1)
%12 = call i32 @compare_and_print(i32 5, i32 6, double 0x3FDC71C6FEF9E805)
%13 = call i32 @compare_and_print(i32 6, i32 5, double 0x3FDC71C6FEF9E805)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @compare_and_print(i32 0, i32 0, double 1.000000e+00)
%4 = tail call i32 @compare_and_print(i32 1, i32 1, double 1.000000e+00)
%5 = tail call i32 @compare_and_print(i32 0, i32 2, double 0.000000e+00)
%6 = tail call i32 @compare_and_print(i32 0, i32 4, double 0.000000e+00)
%7 = tail call i32 @compare_and_print(i32 0, i32 5, double 0.000000e+00)
%8 = tail call i32 @compare_and_print(i32 0, i32 1, double 0x3FC999997FD487BD)
%9 = tail call i32 @compare_and_print(i32 0, i32 3, double 0x3FE999999F816DB1)
%10 = tail call i32 @compare_and_print(i32 5, i32 6, double 0x3FDC71C6FEF9E805)
%11 = tail call i32 @compare_and_print(i32 6, i32 5, double 0x3FDC71C6FEF9E805)
ret i32 0
}