#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 DBL_MIN;
double match_uparse(double p, double q, void *data) {
  double value;
  (void)data;
  value = 1 - p * q / (1 - p - q + 4 * p * q / 3);
  return (value <= 0) ? DBL_MIN : value;
}


x86 assembly (clang, -O0):
<match_uparse>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xedc(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xeda(%rip),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  0xec0(%rip),%xmm3
divsd  %xmm3,%xmm2
addsd  %xmm2,%xmm0
divsd  %xmm0,%xmm1
movsd  0xea4(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     1188 <match_uparse+0x88>
mov    0x2e66(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    1192 <match_uparse+0x92>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<match_uparse>:
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
movsd  0xef0(%rip),%xmm3
movapd %xmm3,%xmm4
subsd  %xmm0,%xmm4
subsd  %xmm1,%xmm4
mulsd  0xee4(%rip),%xmm0
mulsd  %xmm1,%xmm0
divsd  0xee0(%rip),%xmm0
addsd  %xmm4,%xmm0
divsd  %xmm0,%xmm2
subsd  %xmm2,%xmm3
mov    0x2e9d(%rip),%rax
xorpd  %xmm0,%xmm0
movapd %xmm3,%xmm1
cmplesd %xmm0,%xmm1
movsd  (%rax),%xmm0
andpd  %xmm1,%xmm0
andnpd %xmm3,%xmm1
orpd   %xmm1,%xmm0
ret

LLVM IR (-O0):
@DBL_MIN = global double 0.000000e+00
define double @match_uparse(double %0, double %1, i8* %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca i8*
%7 = alloca double
store double %0, double* %4
store double %1, double* %5
store i8* %2, i8** %6
%8 = load i8*, i8** %6
%9 = load double, double* %4
%10 = load double, double* %5
%11 = fmul double %9, %10
%12 = load double, double* %4
%13 = fsub double 1.000000e+00, %12
%14 = load double, double* %5
%15 = fsub double %13, %14
%16 = load double, double* %4
%17 = fmul double 4.000000e+00, %16
%18 = load double, double* %5
%19 = fmul double %17, %18
%20 = fdiv double %19, 3.000000e+00
%21 = fadd double %15, %20
%22 = fdiv double %11, %21
%23 = fsub double 1.000000e+00, %22
store double %23, double* %7
%24 = load double, double* %7
%25 = fcmp ole double %24, 0.000000e+00
br i1 %25, label %26, label %28
26: ; preds = %3
%27 = load double, double* @DBL_MIN
br label %30
28: ; preds = %3
%29 = load double, double* %7
br label %30
30: ; preds = %28, %26
%31 = phi double [ %27, %26 ], [ %29, %28 ]
ret double %31
}

LLVM IR (-O2):
@DBL_MIN = global double 0.000000e+00
define double @match_uparse(double %0, double %1, i8* nocapture readnone %2) {
%4 = fmul double %0, %1
%5 = fsub double 1.000000e+00, %0
%6 = fsub double %5, %1
%7 = fmul double %0, 4.000000e+00
%8 = fmul double %7, %1
%9 = fdiv double %8, 3.000000e+00
%10 = fadd double %6, %9
%11 = fdiv double %4, %10
%12 = fsub double 1.000000e+00, %11
%13 = fcmp ole double %12, 0.000000e+00
%14 = load double, double* @DBL_MIN
%15 = select i1 %13, double %14, double %12
ret double %15
}