#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 */
scalar_t__ stdlib_base_is_nanf(float const);
float stdlib_base_pdifff(const float x, const float y) {
  if (stdlib_base_is_nanf(x) || stdlib_base_is_nanf(y)) {
    return 0.0f / 0.0f;
  }
  if (x > y) {
    return x - y;
  }
  return 0.0f;
}


x86 assembly (clang, -O0):
<stdlib_base_pdifff>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
call   1030 <stdlib_base_is_nanf@plt>
cmp    $0x0,%rax
jne    114a <stdlib_base_pdifff+0x3a>
movss  -0xc(%rbp),%xmm0
call   1030 <stdlib_base_is_nanf@plt>
cmp    $0x0,%rax
je     115c <stdlib_base_pdifff+0x4c>
movss  0xeae(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1187 <stdlib_base_pdifff+0x77>
movss  -0x8(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    117f <stdlib_base_pdifff+0x6f>
movss  -0x8(%rbp),%xmm0
subss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1187 <stdlib_base_pdifff+0x77>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stdlib_base_pdifff>:
push   %rax
movss  %xmm1,(%rsp)
movss  %xmm0,0x4(%rsp)
call   1030 <stdlib_base_is_nanf@plt>
movss  0xed7(%rip),%xmm1
test   %rax,%rax
jne    115f <stdlib_base_pdifff+0x4f>
movss  (%rsp),%xmm0
call   1030 <stdlib_base_is_nanf@plt>
movss  0xec0(%rip),%xmm1
test   %rax,%rax
jne    115f <stdlib_base_pdifff+0x4f>
xorps  %xmm1,%xmm1
movss  0x4(%rsp),%xmm0
ucomiss (%rsp),%xmm0
jbe    115f <stdlib_base_pdifff+0x4f>
movss  0x4(%rsp),%xmm1
subss  (%rsp),%xmm1
movaps %xmm1,%xmm0
pop    %rax
ret

LLVM IR (-O0):
define float @stdlib_base_pdifff(float %0, float %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
store float %0, float* %4
store float %1, float* %5
%6 = load float, float* %4
%7 = call i64 @stdlib_base_is_nanf(float %6)
%8 = icmp ne i64 %7, 0
br i1 %8, label %13, label %9
9: ; preds = %2
%10 = load float, float* %5
%11 = call i64 @stdlib_base_is_nanf(float %10)
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %14
13: ; preds = %9, %2
store float 0x7FF8000000000000, float* %3
br label %23
14: ; preds = %9
%15 = load float, float* %4
%16 = load float, float* %5
%17 = fcmp ogt float %15, %16
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load float, float* %4
%20 = load float, float* %5
%21 = fsub float %19, %20
store float %21, float* %3
br label %23
22: ; preds = %14
store float 0.000000e+00, float* %3
br label %23
23: ; preds = %22, %18, %13
%24 = load float, float* %3
ret float %24
}

LLVM IR (-O2):
define float @stdlib_base_pdifff(float %0, float %1) {
%3 = tail call i64 @stdlib_base_is_nanf(float %0)
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %12
5: ; preds = %2
%6 = tail call i64 @stdlib_base_is_nanf(float %1)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %12
8: ; preds = %5
%9 = fcmp ogt float %0, %1
br i1 %9, label %10, label %12
10: ; preds = %8
%11 = fsub float %0, %1
br label %12
12: ; preds = %8, %2, %5, %10
%13 = phi float [ %11, %10 ], [ 0x7FF8000000000000, %5 ], [ 0x7FF8000000000000, %2 ], [ 0.000000e+00, %8 ]
ret float %13
}