#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 */
double NAN;
int /*<<< orphan*/ assertTrue(char *, int);
int greaterThanEqual(double, double);
void test() {
  assertTrue("greaterThanEqual(42, 0) == 1", greaterThanEqual(42, 0) == 1);
  ;
  assertTrue("greaterThanEqual(0, NAN) == 0", greaterThanEqual(0, NAN) == 0);
  ;
  assertTrue("greaterThanEqual(2.5, 2.5) == 1",
             greaterThanEqual(2.5, 2.5) == 1);
  ;
}


x86 assembly (clang, -O0):
<test>:
push   %rbp
mov    %rsp,%rbp
movsd  0xedc(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1040 <greaterThanEqual@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeca(%rip),%rdi
call   1030 <assertTrue@plt>
mov    0x2ea6(%rip),%rax
movsd  (%rax),%xmm1
xorps  %xmm0,%xmm0
call   1040 <greaterThanEqual@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xebd(%rip),%rdi
call   1030 <assertTrue@plt>
movsd  0xe83(%rip),%xmm1
movaps %xmm1,%xmm0
call   1040 <greaterThanEqual@plt>
cmp    $0x1,%eax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xeb4(%rip),%rdi
call   1030 <assertTrue@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test>:
push   %rax
movsd  0xed7(%rip),%xmm0
xorps  %xmm1,%xmm1
call   1040 <greaterThanEqual@plt>
xor    %esi,%esi
cmp    $0x1,%eax
sete   %sil
lea    0xecf(%rip),%rdi
call   1030 <assertTrue@plt>
mov    0x2eab(%rip),%rax
movsd  (%rax),%xmm1
xorps  %xmm0,%xmm0
call   1040 <greaterThanEqual@plt>
xor    %esi,%esi
test   %eax,%eax
sete   %sil
lea    0xec5(%rip),%rdi
call   1030 <assertTrue@plt>
movsd  0xe93(%rip),%xmm0
movaps %xmm0,%xmm1
call   1040 <greaterThanEqual@plt>
xor    %esi,%esi
cmp    $0x1,%eax
sete   %sil
lea    0xebe(%rip),%rdi
pop    %rax
jmp    1030 <assertTrue@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"greaterThanEqual(42, 0) == 1\00"
@.str.1 = [30 x i8] c"greaterThanEqual(0, NAN) == 0\00"
@NAN = global double 0.000000e+00
@.str.2 = [32 x i8] c"greaterThanEqual(2.5, 2.5) == 1\00"
define void @test() {
%1 = call i32 @greaterThanEqual(double 4.200000e+01, double 0.000000e+00)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = call i32 @assertTrue(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load double, double* @NAN
%6 = call i32 @greaterThanEqual(double 0.000000e+00, double %5)
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = call i32 @assertTrue(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = call i32 @greaterThanEqual(double 2.500000e+00, double 2.500000e+00)
%11 = icmp eq i32 %10, 1
%12 = zext i1 %11 to i32
%13 = call i32 @assertTrue(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %12)
ret void
}

LLVM IR (-O2):
@.str = [29 x i8] c"greaterThanEqual(42, 0) == 1\00"
@.str.1 = [30 x i8] c"greaterThanEqual(0, NAN) == 0\00"
@NAN = global double 0.000000e+00
@.str.2 = [32 x i8] c"greaterThanEqual(2.5, 2.5) == 1\00"
define void @test() {
%1 = tail call i32 @greaterThanEqual(double 4.200000e+01, double 0.000000e+00)
%2 = icmp eq i32 %1, 1
%3 = zext i1 %2 to i32
%4 = tail call i32 @assertTrue(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = load double, double* @NAN
%6 = tail call i32 @greaterThanEqual(double 0.000000e+00, double %5)
%7 = icmp eq i32 %6, 0
%8 = zext i1 %7 to i32
%9 = tail call i32 @assertTrue(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = tail call i32 @greaterThanEqual(double 2.500000e+00, double 2.500000e+00)
%11 = icmp eq i32 %10, 1
%12 = zext i1 %11 to i32
%13 = tail call i32 @assertTrue(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 %12)
ret void
}