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


x86 assembly (clang, -O0):
<mismatch_uparse>:
push   %rbp
mov    %rsp,%rbp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
mov    %rdi,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
movsd  0xee4(%rip),%xmm2
divsd  %xmm2,%xmm0
addsd  %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  0xed2(%rip),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x10(%rbp),%xmm2
movsd  0xeb8(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm0
divsd  %xmm0,%xmm1
movsd  0xe9c(%rip),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jb     1190 <mismatch_uparse+0x90>
mov    0x2e5e(%rip),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    119a <mismatch_uparse+0x9a>
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
pop    %rbp
ret

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

LLVM IR (-O0):
@DBL_MIN = global double 0.000000e+00
define double @mismatch_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 = fdiv double %10, 3.000000e+00
%12 = fadd double %9, %11
%13 = load double, double* %4
%14 = load double, double* %5
%15 = fadd 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 = fsub double %15, %20
%22 = fdiv double %12, %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 @mismatch_uparse(double %0, double %1, i8* nocapture readnone %2) {
%4 = fdiv double %1, 3.000000e+00
%5 = fadd double %4, %0
%6 = fadd double %0, %1
%7 = fmul double %0, 4.000000e+00
%8 = fmul double %7, %1
%9 = fdiv double %8, 3.000000e+00
%10 = fsub double %6, %9
%11 = fdiv double %5, %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
}