#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 exp(double);
double fabs(double);
double log(double);
int pow(double, int);
double rq_pricing_blackscholes_gen(int, double, double, double, double,
                                   int /*<<< orphan*/, double);
double rq_pricing_cumul_bivar_norm_dist(double, double, double);
double rq_pricing_cumul_norm_dist(double);
double sqrt(double);
double rq_pricing_roll_geske_whaley(double S, double X, double t1, double tau_e,
                                    double r, double d, double v) {
  double Sx = S - d * exp(-r * t1);
  double I;
  double a1;
  double a2;
  double b1;
  double b2;
  double high_S;
  double low_S;
  double epsilon = 0.00001;
  double ci;
  double infinity = 100000000;
  if (d <= X * (1.0 - exp(-r * (tau_e - t1))))
    return rq_pricing_blackscholes_gen(1, Sx, X, tau_e, r, 0, v);
  ci = rq_pricing_blackscholes_gen(1, S, X, tau_e - t1, r, 0, v);
  high_S = S;
  while ((ci - high_S - d + X) > 0 && high_S < infinity) {
    high_S = high_S * 2;
    ci = rq_pricing_blackscholes_gen(1, high_S, X, tau_e - t1, r, 0, v);
  }
  if (high_S > infinity)
    return rq_pricing_blackscholes_gen(1, Sx, X, tau_e, r, 0, v);
  low_S = 0;
  I = high_S * 0.5;
  ci = rq_pricing_blackscholes_gen(1, I, X, tau_e - t1, r, 0, v);
  while (fabs(ci - I - d + X) > epsilon && high_S - low_S > epsilon) {
    if ((ci - I - d + X) < 0)
      high_S = I;
    else
      low_S = I;
    I = (high_S + low_S) / 2;
    ci = rq_pricing_blackscholes_gen(1, I, X, tau_e - t1, r, 0, v);
  }
  a1 = (log(Sx / X) + (r + pow(v, 2) / 2) * tau_e) / (v * sqrt(tau_e));
  a2 = a1 - v * sqrt(tau_e);
  b1 = (log(Sx / I) + (r + pow(v, 2) / 2) * t1) / (v * sqrt(t1));
  b2 = b1 - v * sqrt(t1);
  return Sx * rq_pricing_cumul_norm_dist(b1) +
         Sx * rq_pricing_cumul_bivar_norm_dist(a1, -b1, -sqrt(t1 / tau_e)) -
         X * exp(-r * tau_e) *
             rq_pricing_cumul_bivar_norm_dist(a2, -b2, -sqrt(t1 / tau_e)) -
         (X - d) * exp(-r * t1) * rq_pricing_cumul_norm_dist(b2);
}


x86 assembly (clang, -O0):
<rq_pricing_roll_geske_whaley>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x18(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x28(%rbp)
movsd  %xmm4,-0x30(%rbp)
movsd  %xmm5,-0x38(%rbp)
movsd  %xmm6,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1050 <exp@plt>
movsd  -0xb8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdf3(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xddb(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x28(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
call   1050 <exp@plt>
movsd  -0xa8(%rbp),%xmm1
ff
movaps %xmm0,%xmm3
movsd  -0xa0(%rbp),%xmm0
ff
movsd  0xd67(%rip),%xmm2
subsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jb     12da <rq_pricing_roll_geske_whaley+0x16a>
movsd  -0x48(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x8(%rbp)
jmp    197c <rq_pricing_roll_geske_whaley+0x80c>
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0x78(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
xor    %eax,%eax
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
mov    %al,-0xb9(%rbp)
jbe    135c <rq_pricing_roll_geske_whaley+0x1ec>
movsd  -0x78(%rbp),%xmm1
movsd  -0x98(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
seta   %al
mov    %al,-0xb9(%rbp)
mov    -0xb9(%rbp),%al
test   $0x1,%al
jne    136f <rq_pricing_roll_geske_whaley+0x1ff>
jmp    13b8 <rq_pricing_roll_geske_whaley+0x248>
movsd  0xca9(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x90(%rbp)
ff
jmp    1316 <rq_pricing_roll_geske_whaley+0x1a6>
movsd  -0x78(%rbp),%xmm0
ucomisd -0x98(%rbp),%xmm0
ff
jbe    13fa <rq_pricing_roll_geske_whaley+0x28a>
movsd  -0x48(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x8(%rbp)
jmp    197c <rq_pricing_roll_geske_whaley+0x80c>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xc0e(%rip),%xmm0
mulsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
subsd  -0x50(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movaps 0xbcc(%rip),%xmm1
pand   %xmm1,%xmm0
xor    %eax,%eax
ucomisd -0x88(%rbp),%xmm0
ff
mov    %al,-0xba(%rbp)
jbe    1499 <rq_pricing_roll_geske_whaley+0x329>
movsd  -0x78(%rbp),%xmm0
subsd  -0x80(%rbp),%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
seta   %al
mov    %al,-0xba(%rbp)
mov    -0xba(%rbp),%al
test   $0x1,%al
jne    14ac <rq_pricing_roll_geske_whaley+0x33c>
jmp    153b <rq_pricing_roll_geske_whaley+0x3cb>
movsd  -0x90(%rbp),%xmm1
ff
subsd  -0x50(%rbp),%xmm1
subsd  -0x38(%rbp),%xmm1
addsd  -0x18(%rbp),%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    14df <rq_pricing_roll_geske_whaley+0x36f>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
jmp    14e9 <rq_pricing_roll_geske_whaley+0x379>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x78(%rbp),%xmm0
addsd  -0x80(%rbp),%xmm0
movsd  0xb25(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
subsd  -0x20(%rbp),%xmm2
movsd  -0x30(%rbp),%xmm3
movsd  -0x40(%rbp),%xmm4
mov    $0x1,%edi
xor    %esi,%esi
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  %xmm0,-0x90(%rbp)
ff
jmp    1446 <rq_pricing_roll_geske_whaley+0x2d6>
movsd  -0x48(%rbp),%xmm0
divsd  -0x18(%rbp),%xmm0
call   1070 <log@plt>
movsd  %xmm0,-0x180(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x188(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
movsd  -0x188(%rbp),%xmm0
ff
movsd  -0x180(%rbp),%xmm1
ff
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x170(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x178(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0x178(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x170(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x168(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x160(%rbp)
ff
movsd  -0x28(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0x168(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x160(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x48(%rbp),%xmm0
divsd  -0x50(%rbp),%xmm0
call   1070 <log@plt>
movsd  %xmm0,-0x150(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x158(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
movsd  -0x158(%rbp),%xmm0
ff
movsd  -0x150(%rbp),%xmm1
ff
mov    $0x2,%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm0
movsd  -0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x140(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x148(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0x148(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x140(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x138(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x130(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0x138(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x130(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  %xmm0,-0x110(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x120(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x128(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0x128(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x120(%rbp),%xmm0
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0x118(%rbp),%xmm1
ff
movsd  -0x110(%rbp),%xmm2
ff
movaps %xmm0,%xmm3
movsd  -0x108(%rbp),%xmm0
ff
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x100(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xf8(%rbp)
ff
movsd  -0x20(%rbp),%xmm0
divsd  -0x28(%rbp),%xmm0
call   1090 <sqrt@plt>
movsd  -0xf8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xf0(%rbp),%xmm0
ff
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  -0xe8(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xe0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x18(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x20(%rbp),%xmm0
call   1050 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  -0xd0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xc8(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rq_pricing_roll_geske_whaley>:
sub    $0xd8,%rsp
movapd %xmm6,0x60(%rsp)
movsd  %xmm5,0x78(%rsp)
movsd  %xmm3,0x40(%rsp)
movsd  %xmm2,0x38(%rsp)
movsd  %xmm1,0x18(%rsp)
movaps %xmm0,(%rsp)
movapd 0xe5f(%rip),%xmm0
movapd %xmm4,0x20(%rsp)
xorpd  %xmm4,%xmm0
movapd %xmm0,0xb0(%rsp)
mulsd  %xmm2,%xmm0
movapd %xmm0,0xc0(%rsp)
call   1050 <exp@plt>
mulsd  0x78(%rsp),%xmm0
movapd (%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x48(%rsp)
movsd  0x40(%rsp),%xmm0
subsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x80(%rsp)
mulsd  0xb0(%rsp),%xmm0
call   1050 <exp@plt>
movsd  0x18(%rsp),%xmm1
movsd  0xe14(%rip),%xmm2
subsd  %xmm0,%xmm2
movsd  0x78(%rsp),%xmm0
mulsd  %xmm1,%xmm2
mov    $0x1,%edi
ucomisd %xmm0,%xmm2
jae    131b <rq_pricing_roll_geske_whaley+0x1ab>
movapd (%rsp),%xmm0
movsd  0x80(%rsp),%xmm2
movapd 0x20(%rsp),%xmm3
xor    %esi,%esi
movaps 0x60(%rsp),%xmm4
call   1060 <rq_pricing_blackscholes_gen@plt>
movsd  0xdd7(%rip),%xmm1
movapd (%rsp),%xmm4
ucomisd %xmm4,%xmm1
jbe    1340 <rq_pricing_roll_geske_whaley+0x1d0>
subsd  %xmm4,%xmm0
subsd  0x78(%rsp),%xmm0
movsd  0x18(%rsp),%xmm2
addsd  %xmm2,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
movapd %xmm2,%xmm1
jbe    1346 <rq_pricing_roll_geske_whaley+0x1d6>
movapd 0x20(%rsp),%xmm3
movsd  0x80(%rsp),%xmm2
cs nopw 0x0(%rax,%rax,1)
nop
addsd  %xmm4,%xmm4
movapd %xmm4,(%rsp)
mov    $0x1,%edi
movapd %xmm4,%xmm0
xor    %esi,%esi
movaps 0x60(%rsp),%xmm4
call   1060 <rq_pricing_blackscholes_gen@plt>
movapd (%rsp),%xmm4
movsd  0xd5d(%rip),%xmm1
ucomisd %xmm4,%xmm1
jbe    1340 <rq_pricing_roll_geske_whaley+0x1d0>
subsd  %xmm4,%xmm0
subsd  0x78(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm0
ucomisd 0xd53(%rip),%xmm0
movapd 0x20(%rsp),%xmm3
movsd  0x80(%rsp),%xmm2
ja     12a0 <rq_pricing_roll_geske_whaley+0x130>
ucomisd 0xd22(%rip),%xmm4
jbe    135e <rq_pricing_roll_geske_whaley+0x1ee>
mov    $0x1,%edi
movsd  0x48(%rsp),%xmm0
movsd  0x40(%rsp),%xmm2
jmp    132d <rq_pricing_roll_geske_whaley+0x1bd>
movsd  0x48(%rsp),%xmm0
movsd  0x40(%rsp),%xmm2
movapd 0x20(%rsp),%xmm3
xor    %esi,%esi
movaps 0x60(%rsp),%xmm4
add    $0xd8,%rsp
jmp    1060 <rq_pricing_blackscholes_gen@plt>
movsd  0x18(%rsp),%xmm1
movaps 0x20(%rsp),%xmm3
movsd  0x80(%rsp),%xmm2
ucomisd 0xccc(%rip),%xmm4
ja     1308 <rq_pricing_roll_geske_whaley+0x198>
movsd  0xcca(%rip),%xmm0
mulsd  %xmm4,%xmm0
movapd %xmm0,0x50(%rsp)
mov    $0x1,%edi
xor    %esi,%esi
movapd %xmm4,(%rsp)
movapd 0x60(%rsp),%xmm4
call   1060 <rq_pricing_blackscholes_gen@plt>
movapd 0x50(%rsp),%xmm5
movsd  0x18(%rsp),%xmm1
subsd  %xmm5,%xmm0
subsd  0x78(%rsp),%xmm0
addsd  %xmm1,%xmm0
movapd 0xc67(%rip),%xmm2
andpd  %xmm0,%xmm2
ucomisd 0xc83(%rip),%xmm2
jbe    149c <rq_pricing_roll_geske_whaley+0x32c>
movapd (%rsp),%xmm4
ucomisd 0xc70(%rip),%xmm4
jbe    149c <rq_pricing_roll_geske_whaley+0x32c>
xorpd  %xmm6,%xmm6
xorpd  %xmm7,%xmm7
movapd 0x20(%rsp),%xmm3
nopl   0x0(%rax)
ucomisd %xmm0,%xmm6
ja     13ea <rq_pricing_roll_geske_whaley+0x27a>
movapd %xmm5,%xmm7
movsd  %xmm7,0x90(%rsp)
cmpltsd %xmm6,%xmm0
andpd  %xmm0,%xmm5
andnpd %xmm4,%xmm0
orpd   %xmm5,%xmm0
movapd %xmm0,(%rsp)
addsd  %xmm7,%xmm0
mulsd  0xc1b(%rip),%xmm0
movapd %xmm0,0x50(%rsp)
mov    $0x1,%edi
movsd  0x80(%rsp),%xmm2
xor    %esi,%esi
movapd 0x60(%rsp),%xmm4
call   1060 <rq_pricing_blackscholes_gen@plt>
movapd 0x50(%rsp),%xmm5
movsd  0x18(%rsp),%xmm1
subsd  %xmm5,%xmm0
subsd  0x78(%rsp),%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,%xmm2
andpd  0xbb4(%rip),%xmm2
movsd  0xbd4(%rip),%xmm3
ucomisd %xmm3,%xmm2
jbe    149c <rq_pricing_roll_geske_whaley+0x32c>
movapd (%rsp),%xmm4
movapd %xmm4,%xmm2
movsd  0x90(%rsp),%xmm7
subsd  %xmm7,%xmm2
ucomisd %xmm3,%xmm2
movsd  0x48(%rsp),%xmm2
movapd 0x20(%rsp),%xmm3
xorpd  %xmm6,%xmm6
ja     13e0 <rq_pricing_roll_geske_whaley+0x270>
jmp    14a2 <rq_pricing_roll_geske_whaley+0x332>
movsd  0x48(%rsp),%xmm2
movapd %xmm5,0x50(%rsp)
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
call   1070 <log@plt>
movsd  %xmm0,0xa8(%rsp)
movaps 0x60(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
movsd  0x40(%rsp),%xmm1
xorps  %xmm0,%xmm0
sqrtsd %xmm1,%xmm0
xorpd  %xmm3,%xmm3
ucomisd %xmm3,%xmm1
movsd  %xmm0,0xa0(%rsp)
jae    151a <rq_pricing_roll_geske_whaley+0x3aa>
movapd %xmm1,%xmm0
movsd  %xmm2,(%rsp)
call   1090 <sqrt@plt>
xorpd  %xmm3,%xmm3
movsd  (%rsp),%xmm2
movsd  0x40(%rsp),%xmm1
movsd  %xmm0,0x90(%rsp)
addsd  0x20(%rsp),%xmm2
ucomisd %xmm3,%xmm1
jae    1551 <rq_pricing_roll_geske_whaley+0x3e1>
movapd %xmm1,%xmm0
movsd  %xmm2,(%rsp)
call   1090 <sqrt@plt>
movsd  (%rsp),%xmm2
movsd  0x40(%rsp),%xmm1
movsd  %xmm0,0xa0(%rsp)
mulsd  %xmm1,%xmm2
movsd  %xmm2,(%rsp)
movaps 0xa9f(%rip),%xmm0
xorps  0x60(%rsp),%xmm0
movaps %xmm0,0x80(%rsp)
movsd  0x48(%rsp),%xmm0
divsd  0x50(%rsp),%xmm0
call   1070 <log@plt>
movsd  %xmm0,0x50(%rsp)
movaps 0x60(%rsp),%xmm0
mov    $0x2,%edi
call   1080 <pow@plt>
mov    %eax,%ecx
shr    $0x1f,%ecx
add    %eax,%ecx
sar    %ecx
xorps  %xmm4,%xmm4
cvtsi2sd %ecx,%xmm4
addsd  0x20(%rsp),%xmm4
movsd  0x38(%rsp),%xmm1
mulsd  %xmm1,%xmm4
addsd  0x50(%rsp),%xmm4
xorps  %xmm6,%xmm6
sqrtsd %xmm1,%xmm6
xorpd  %xmm7,%xmm7
ucomisd %xmm7,%xmm1
movapd %xmm6,%xmm0
jae    15fa <rq_pricing_roll_geske_whaley+0x48a>
movapd %xmm1,%xmm0
movapd %xmm4,0x50(%rsp)
movsd  %xmm6,0x20(%rsp)
call   1090 <sqrt@plt>
xorpd  %xmm7,%xmm7
movsd  0x20(%rsp),%xmm6
movapd 0x50(%rsp),%xmm4
movsd  0x38(%rsp),%xmm1
movsd  (%rsp),%xmm5
addsd  0xa8(%rsp),%xmm5
movsd  0x90(%rsp),%xmm3
movapd 0x60(%rsp),%xmm2
mulsd  %xmm2,%xmm3
mulsd  %xmm2,%xmm0
divsd  %xmm0,%xmm4
ucomisd %xmm7,%xmm1
movapd %xmm2,%xmm1
movapd %xmm5,%xmm2
movapd %xmm4,0x50(%rsp)
jae    166e <rq_pricing_roll_geske_whaley+0x4fe>
movsd  0x38(%rsp),%xmm0
movsd  %xmm2,(%rsp)
movsd  %xmm3,0x90(%rsp)
call   1090 <sqrt@plt>
movapd 0x50(%rsp),%xmm4
movsd  0x90(%rsp),%xmm3
movsd  (%rsp),%xmm2
movapd 0x60(%rsp),%xmm1
movapd %xmm0,%xmm6
divsd  %xmm3,%xmm2
movsd  %xmm2,(%rsp)
mulsd  0xa0(%rsp),%xmm1
movapd %xmm1,0x60(%rsp)
movapd 0x80(%rsp),%xmm0
mulsd  %xmm6,%xmm0
addsd  %xmm4,%xmm0
movapd %xmm0,0x80(%rsp)
movapd %xmm4,%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movaps 0x50(%rsp),%xmm1
movsd  %xmm0,0x20(%rsp)
xorps  0x945(%rip),%xmm1
movsd  0x38(%rsp),%xmm0
divsd  0x40(%rsp),%xmm0
xorps  %xmm2,%xmm2
sqrtsd %xmm0,%xmm2
xorpd  %xmm3,%xmm3
movsd  %xmm0,0x38(%rsp)
ucomisd %xmm3,%xmm0
movapd %xmm2,0x90(%rsp)
jae    1700 <rq_pricing_roll_geske_whaley+0x590>
movsd  0x38(%rsp),%xmm0
movaps %xmm1,0x50(%rsp)
call   1090 <sqrt@plt>
movaps 0x50(%rsp),%xmm1
movapd %xmm0,%xmm2
movsd  (%rsp),%xmm0
movapd %xmm0,%xmm3
subsd  0x60(%rsp),%xmm3
movsd  %xmm3,0x60(%rsp)
xorpd  0x8e3(%rip),%xmm2
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x48(%rsp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x20(%rsp),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm0,%xmm2
movsd  %xmm2,0x20(%rsp)
movapd 0xb0(%rsp),%xmm0
mulsd  0x40(%rsp),%xmm0
call   1050 <exp@plt>
movaps 0x8a5(%rip),%xmm1
movsd  %xmm0,(%rsp)
xorps  0x80(%rsp),%xmm1
movsd  0x38(%rsp),%xmm0
ucomisd 0x8ca(%rip),%xmm0
movapd 0x90(%rsp),%xmm2
jae    1794 <rq_pricing_roll_geske_whaley+0x624>
movaps %xmm1,0x50(%rsp)
call   1090 <sqrt@plt>
movaps 0x50(%rsp),%xmm1
movapd %xmm0,%xmm2
xorpd  0x864(%rip),%xmm2
movsd  0x60(%rsp),%xmm0
call   1040 <rq_pricing_cumul_bivar_norm_dist@plt>
movsd  0x18(%rsp),%xmm2
movsd  (%rsp),%xmm1
mulsd  %xmm2,%xmm1
mulsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,0x20(%rsp)
subsd  0x78(%rsp),%xmm2
movsd  %xmm2,0x18(%rsp)
movaps 0xc0(%rsp),%xmm0
call   1050 <exp@plt>
movsd  %xmm0,(%rsp)
movapd 0x80(%rsp),%xmm0
call   1030 <rq_pricing_cumul_norm_dist@plt>
movsd  (%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0xd8,%rsp
ret

LLVM IR (-O0):
define double @rq_pricing_roll_geske_whaley(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = alloca double
store double %0, double* %9
store double %1, double* %10
store double %2, double* %11
store double %3, double* %12
store double %4, double* %13
store double %5, double* %14
store double %6, double* %15
%27 = load double, double* %9
%28 = load double, double* %14
%29 = load double, double* %13
%30 = fneg double %29
%31 = load double, double* %11
%32 = fmul double %30, %31
%33 = call double @exp(double %32)
%34 = fneg double %28
%35 = call double @llvm.fmuladd.f64(double %34, double %33, double %27)
store double %35, double* %16
store double 1.000000e-05, double* %24
store double 1.000000e+08, double* %26
%36 = load double, double* %14
%37 = load double, double* %10
%38 = load double, double* %13
%39 = fneg double %38
%40 = load double, double* %12
%41 = load double, double* %11
%42 = fsub double %40, %41
%43 = fmul double %39, %42
%44 = call double @exp(double %43)
%45 = fsub double 1.000000e+00, %44
%46 = fmul double %37, %45
%47 = fcmp ole double %36, %46
br i1 %47, label %48, label %55
48: ; preds = %7
%49 = load double, double* %16
%50 = load double, double* %10
%51 = load double, double* %12
%52 = load double, double* %13
%53 = load double, double* %15
%54 = call double @rq_pricing_blackscholes_gen(i32 1, double %49, double %50, double %51, double %52, i32 0, double %53)
store double %54, double* %8
br label %251
55: ; preds = %7
%56 = load double, double* %9
%57 = load double, double* %10
%58 = load double, double* %12
%59 = load double, double* %11
%60 = fsub double %58, %59
%61 = load double, double* %13
%62 = load double, double* %15
%63 = call double @rq_pricing_blackscholes_gen(i32 1, double %56, double %57, double %60, double %61, i32 0, double %62)
store double %63, double* %25
%64 = load double, double* %9
store double %64, double* %22
br label %65
65: ; preds = %80, %55
%66 = load double, double* %25
%67 = load double, double* %22
%68 = fsub double %66, %67
%69 = load double, double* %14
%70 = fsub double %68, %69
%71 = load double, double* %10
%72 = fadd double %70, %71
%73 = fcmp ogt double %72, 0.000000e+00
br i1 %73, label %74, label %78
74: ; preds = %65
%75 = load double, double* %22
%76 = load double, double* %26
%77 = fcmp olt double %75, %76
br label %78
78: ; preds = %74, %65
%79 = phi i1 [ false, %65 ], [ %77, %74 ]
br i1 %79, label %80, label %91
80: ; preds = %78
%81 = load double, double* %22
%82 = fmul double %81, 2.000000e+00
store double %82, double* %22
%83 = load double, double* %22
%84 = load double, double* %10
%85 = load double, double* %12
%86 = load double, double* %11
%87 = fsub double %85, %86
%88 = load double, double* %13
%89 = load double, double* %15
%90 = call double @rq_pricing_blackscholes_gen(i32 1, double %83, double %84, double %87, double %88, i32 0, double %89)
store double %90, double* %25
br label %65
91: ; preds = %78
%92 = load double, double* %22
%93 = load double, double* %26
%94 = fcmp ogt double %92, %93
br i1 %94, label %95, label %102
95: ; preds = %91
%96 = load double, double* %16
%97 = load double, double* %10
%98 = load double, double* %12
%99 = load double, double* %13
%100 = load double, double* %15
%101 = call double @rq_pricing_blackscholes_gen(i32 1, double %96, double %97, double %98, double %99, i32 0, double %100)
store double %101, double* %8
br label %251
102: ; preds = %91
store double 0.000000e+00, double* %23
%103 = load double, double* %22
%104 = fmul double %103, 5.000000e-01
store double %104, double* %17
%105 = load double, double* %17
%106 = load double, double* %10
%107 = load double, double* %12
%108 = load double, double* %11
%109 = fsub double %107, %108
%110 = load double, double* %13
%111 = load double, double* %15
%112 = call double @rq_pricing_blackscholes_gen(i32 1, double %105, double %106, double %109, double %110, i32 0, double %111)
store double %112, double* %25
br label %113
113: ; preds = %145, %102
%114 = load double, double* %25
%115 = load double, double* %17
%116 = fsub double %114, %115
%117 = load double, double* %14
%118 = fsub double %116, %117
%119 = load double, double* %10
%120 = fadd double %118, %119
%121 = call double @llvm.fabs.f64(double %120)
%122 = load double, double* %24
%123 = fcmp ogt double %121, %122
br i1 %123, label %124, label %130
124: ; preds = %113
%125 = load double, double* %22
%126 = load double, double* %23
%127 = fsub double %125, %126
%128 = load double, double* %24
%129 = fcmp ogt double %127, %128
br label %130
130: ; preds = %124, %113
%131 = phi i1 [ false, %113 ], [ %129, %124 ]
br i1 %131, label %132, label %158
132: ; preds = %130
%133 = load double, double* %25
%134 = load double, double* %17
%135 = fsub double %133, %134
%136 = load double, double* %14
%137 = fsub double %135, %136
%138 = load double, double* %10
%139 = fadd double %137, %138
%140 = fcmp olt double %139, 0.000000e+00
br i1 %140, label %141, label %143
141: ; preds = %132
%142 = load double, double* %17
store double %142, double* %22
br label %145
143: ; preds = %132
%144 = load double, double* %17
store double %144, double* %23
br label %145
145: ; preds = %143, %141
%146 = load double, double* %22
%147 = load double, double* %23
%148 = fadd double %146, %147
%149 = fdiv double %148, 2.000000e+00
store double %149, double* %17
%150 = load double, double* %17
%151 = load double, double* %10
%152 = load double, double* %12
%153 = load double, double* %11
%154 = fsub double %152, %153
%155 = load double, double* %13
%156 = load double, double* %15
%157 = call double @rq_pricing_blackscholes_gen(i32 1, double %150, double %151, double %154, double %155, i32 0, double %156)
store double %157, double* %25
br label %113
158: ; preds = %130
%159 = load double, double* %16
%160 = load double, double* %10
%161 = fdiv double %159, %160
%162 = call double @log(double %161)
%163 = load double, double* %13
%164 = load double, double* %15
%165 = call i32 @pow(double %164, i32 2)
%166 = sdiv i32 %165, 2
%167 = sitofp i32 %166 to double
%168 = fadd double %163, %167
%169 = load double, double* %12
%170 = call double @llvm.fmuladd.f64(double %168, double %169, double %162)
%171 = load double, double* %15
%172 = load double, double* %12
%173 = call double @sqrt(double %172)
%174 = fmul double %171, %173
%175 = fdiv double %170, %174
store double %175, double* %18
%176 = load double, double* %18
%177 = load double, double* %15
%178 = load double, double* %12
%179 = call double @sqrt(double %178)
%180 = fneg double %177
%181 = call double @llvm.fmuladd.f64(double %180, double %179, double %176)
store double %181, double* %19
%182 = load double, double* %16
%183 = load double, double* %17
%184 = fdiv double %182, %183
%185 = call double @log(double %184)
%186 = load double, double* %13
%187 = load double, double* %15
%188 = call i32 @pow(double %187, i32 2)
%189 = sdiv i32 %188, 2
%190 = sitofp i32 %189 to double
%191 = fadd double %186, %190
%192 = load double, double* %11
%193 = call double @llvm.fmuladd.f64(double %191, double %192, double %185)
%194 = load double, double* %15
%195 = load double, double* %11
%196 = call double @sqrt(double %195)
%197 = fmul double %194, %196
%198 = fdiv double %193, %197
store double %198, double* %20
%199 = load double, double* %20
%200 = load double, double* %15
%201 = load double, double* %11
%202 = call double @sqrt(double %201)
%203 = fneg double %200
%204 = call double @llvm.fmuladd.f64(double %203, double %202, double %199)
store double %204, double* %21
%205 = load double, double* %16
%206 = load double, double* %20
%207 = call double @rq_pricing_cumul_norm_dist(double %206)
%208 = load double, double* %16
%209 = load double, double* %18
%210 = load double, double* %20
%211 = fneg double %210
%212 = load double, double* %11
%213 = load double, double* %12
%214 = fdiv double %212, %213
%215 = call double @sqrt(double %214)
%216 = fneg double %215
%217 = call double @rq_pricing_cumul_bivar_norm_dist(double %209, double %211, double %216)
%218 = fmul double %208, %217
%219 = call double @llvm.fmuladd.f64(double %205, double %207, double %218)
%220 = load double, double* %10
%221 = load double, double* %13
%222 = fneg double %221
%223 = load double, double* %12
%224 = fmul double %222, %223
%225 = call double @exp(double %224)
%226 = fmul double %220, %225
%227 = load double, double* %19
%228 = load double, double* %21
%229 = fneg double %228
%230 = load double, double* %11
%231 = load double, double* %12
%232 = fdiv double %230, %231
%233 = call double @sqrt(double %232)
%234 = fneg double %233
%235 = call double @rq_pricing_cumul_bivar_norm_dist(double %227, double %229, double %234)
%236 = fneg double %226
%237 = call double @llvm.fmuladd.f64(double %236, double %235, double %219)
%238 = load double, double* %10
%239 = load double, double* %14
%240 = fsub double %238, %239
%241 = load double, double* %13
%242 = fneg double %241
%243 = load double, double* %11
%244 = fmul double %242, %243
%245 = call double @exp(double %244)
%246 = fmul double %240, %245
%247 = load double, double* %21
%248 = call double @rq_pricing_cumul_norm_dist(double %247)
%249 = fneg double %246
%250 = call double @llvm.fmuladd.f64(double %249, double %248, double %237)
store double %250, double* %8
br label %251
251: ; preds = %158, %95, %48
%252 = load double, double* %8
ret double %252
}

LLVM IR (-O2):
define double @rq_pricing_roll_geske_whaley(double %0, double %1, double %2, double %3, double %4, double %5, double %6) {
%8 = fneg double %4
%9 = fmul double %8, %2
%10 = tail call double @exp(double %9)
%11 = fneg double %5
%12 = tail call double @llvm.fmuladd.f64(double %11, double %10, double %0)
%13 = fsub double %3, %2
%14 = fmul double %13, %8
%15 = tail call double @exp(double %14)
%16 = fsub double 1.000000e+00, %15
%17 = fmul double %16, %1
%18 = fcmp ult double %17, %5
br i1 %18, label %21, label %19
19: ; preds = %7
%20 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %12, double %1, double %3, double %4, i32 0, double %6)
br label %123
21: ; preds = %7
%22 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %0, double %1, double %13, double %4, i32 0, double %6)
%23 = fsub double %22, %0
%24 = fsub double %23, %5
%25 = fadd double %24, %1
%26 = fcmp ogt double %25, 0.000000e+00
%27 = fcmp olt double %0, 1.000000e+08
%28 = and i1 %27, %26
br i1 %28, label %29, label %39
29: ; preds = %21, %29
%30 = phi double [ %31, %29 ], [ %0, %21 ]
%31 = fmul double %30, 2.000000e+00
%32 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %31, double %1, double %13, double %4, i32 0, double %6)
%33 = fsub double %32, %31
%34 = fsub double %33, %5
%35 = fadd double %34, %1
%36 = fcmp ogt double %35, 0.000000e+00
%37 = fcmp olt double %31, 1.000000e+08
%38 = and i1 %37, %36
br i1 %38, label %29, label %39
39: ; preds = %29, %21
%40 = phi double [ %0, %21 ], [ %31, %29 ]
%41 = fcmp ogt double %40, 1.000000e+08
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %12, double %1, double %3, double %4, i32 0, double %6)
br label %123
44: ; preds = %39
%45 = fmul double %40, 5.000000e-01
%46 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %45, double %1, double %13, double %4, i32 0, double %6)
%47 = fsub double %46, %45
%48 = fsub double %47, %5
%49 = fadd double %48, %1
%50 = tail call double @llvm.fabs.f64(double %49)
%51 = fcmp ogt double %50, 1.000000e-05
%52 = fcmp ogt double %40, 1.000000e-05
%53 = and i1 %51, %52
br i1 %53, label %54, label %73
54: ; preds = %44, %54
%55 = phi double [ %67, %54 ], [ %49, %44 ]
%56 = phi double [ %63, %54 ], [ %45, %44 ]
%57 = phi double [ %61, %54 ], [ 0.000000e+00, %44 ]
%58 = phi double [ %60, %54 ], [ %40, %44 ]
%59 = fcmp olt double %55, 0.000000e+00
%60 = select i1 %59, double %56, double %58
%61 = select i1 %59, double %57, double %56
%62 = fadd double %60, %61
%63 = fmul double %62, 5.000000e-01
%64 = tail call double @rq_pricing_blackscholes_gen(i32 1, double %63, double %1, double %13, double %4, i32 0, double %6)
%65 = fsub double %64, %63
%66 = fsub double %65, %5
%67 = fadd double %66, %1
%68 = tail call double @llvm.fabs.f64(double %67)
%69 = fcmp ogt double %68, 1.000000e-05
%70 = fsub double %60, %61
%71 = fcmp ogt double %70, 1.000000e-05
%72 = select i1 %69, i1 %71, i1 false
br i1 %72, label %54, label %73
73: ; preds = %54, %44
%74 = phi double [ %45, %44 ], [ %63, %54 ]
%75 = fdiv double %12, %1
%76 = tail call double @log(double %75)
%77 = tail call i32 @pow(double %6, i32 2)
%78 = sdiv i32 %77, 2
%79 = sitofp i32 %78 to double
%80 = fadd double %79, %4
%81 = tail call double @llvm.fmuladd.f64(double %80, double %3, double %76)
%82 = tail call double @sqrt(double %3)
%83 = fmul double %82, %6
%84 = fdiv double %81, %83
%85 = tail call double @sqrt(double %3)
%86 = fneg double %6
%87 = tail call double @llvm.fmuladd.f64(double %86, double %85, double %84)
%88 = fdiv double %12, %74
%89 = tail call double @log(double %88)
%90 = tail call i32 @pow(double %6, i32 2)
%91 = sdiv i32 %90, 2
%92 = sitofp i32 %91 to double
%93 = fadd double %92, %4
%94 = tail call double @llvm.fmuladd.f64(double %93, double %2, double %89)
%95 = tail call double @sqrt(double %2)
%96 = fmul double %95, %6
%97 = fdiv double %94, %96
%98 = tail call double @sqrt(double %2)
%99 = tail call double @llvm.fmuladd.f64(double %86, double %98, double %97)
%100 = tail call double @rq_pricing_cumul_norm_dist(double %97)
%101 = fneg double %97
%102 = fdiv double %2, %3
%103 = tail call double @sqrt(double %102)
%104 = fneg double %103
%105 = tail call double @rq_pricing_cumul_bivar_norm_dist(double %84, double %101, double %104)
%106 = fmul double %12, %105
%107 = tail call double @llvm.fmuladd.f64(double %12, double %100, double %106)
%108 = fmul double %8, %3
%109 = tail call double @exp(double %108)
%110 = fneg double %99
%111 = tail call double @sqrt(double %102)
%112 = fneg double %111
%113 = tail call double @rq_pricing_cumul_bivar_norm_dist(double %87, double %110, double %112)
%114 = fneg double %109
%115 = fmul double %114, %1
%116 = tail call double @llvm.fmuladd.f64(double %115, double %113, double %107)
%117 = fsub double %1, %5
%118 = tail call double @exp(double %9)
%119 = tail call double @rq_pricing_cumul_norm_dist(double %99)
%120 = fneg double %117
%121 = fmul double %118, %120
%122 = tail call double @llvm.fmuladd.f64(double %121, double %119, double %116)
br label %123
123: ; preds = %73, %42, %19
%124 = phi double [ %20, %19 ], [ %43, %42 ], [ %122, %73 ]
ret double %124
}